Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.graph
Interface IVertex  view IVertex download IVertex.java

All Superinterfaces:
com.port80.util.attr.IAttrTable, IGraphElement

public interface IVertex
extends IGraphElement

graph vertex interface. . Each vertex have a set of incoming edges, a set of outgoing edges and an attribute table. . Attribute registry Vertex are usually created by a VertexFactory. The VertexFactory maintain an attribute registry for the type of vertex it created. Clients that invent their own attributes should register the attribute name with the Vertex class and check for conflicts during initialization. . No checking for valid attribute name is done when accessing the attribute table for the vertex.


Method Summary
 void addIn(IEdge e)
           
 void addIn(IEdge e, int n)
           
 void addOut(IEdge e)
           
 void addOut(IEdge e, int n)
           
 void addPort(java.lang.String port)
           
 void clearEdges()
           
 void clearLayout()
           
 IEdge[] edges()
          The set of all edges.
 java.util.List findEdgesFrom(IVertex v, java.util.List ret)
           
 java.util.List findEdgesFrom(IVertex v, java.lang.String attrname, java.util.List ret)
           
 java.util.List findEdgesTo(IVertex v, java.util.List ret)
           
 java.util.List findEdgesTo(IVertex v, java.lang.String attrname, java.util.List ret)
           
 java.util.List findIns(java.lang.String attrname, java.util.List ret)
          Find edge with the given attribute.
 java.util.List findOuts(java.lang.String attrname, java.util.List ret)
           
 IGraph getParent()
           
 IEdge[] ins()
           
 int inSize()
           
 boolean isReachable(IVertex v)
           
 java.util.Set neighbours()
          Set of directly conected vertex.
 IEdge[] outs()
           
 int outSize()
           
 java.util.Set reachable()
           
 boolean removeIn(IEdge e)
           
 IEdge removeIn(int n)
           
 int removeInsFrom(IVertex head)
           
 boolean removeOut(IEdge e)
           
 IEdge removeOut(int n)
           
 int removeOutsTo(IVertex head)
           
 void setParent(IGraph parent)
           
 
Methods inherited from interface com.port80.graph.IGraphElement
getData, getElementTypeName, getName, setData, setName
 
Methods inherited from interface com.port80.util.attr.IAttrTable
attrKeySet, clearAttrs, getAttr, getAttrAsString, getAttrBool, getAttrBool, getAttrCached, getAttrDouble, getAttrDouble, getAttrFloat, getAttrFloat, getAttrInt, getAttrInt, getAttrLong, getAttrLong, getAttrRegistry, getAttrString, hasAttr, removeAttr, removeUnregisteredAttrs, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttrFromString
 

Method Detail

getParent

public IGraph getParent()

setParent

public void setParent(IGraph parent)

addPort

public void addPort(java.lang.String port)

edges

public IEdge[] edges()
The set of all edges. NOTE: The set returned should be considered read only. Add or remove of edges should use method provided by the Edge class.


ins

public IEdge[] ins()

outs

public IEdge[] outs()

inSize

public int inSize()

outSize

public int outSize()

addIn

public void addIn(IEdge e)

addOut

public void addOut(IEdge e)

addIn

public void addIn(IEdge e,
                  int n)

addOut

public void addOut(IEdge e,
                   int n)

removeIn

public IEdge removeIn(int n)

removeOut

public IEdge removeOut(int n)

removeIn

public boolean removeIn(IEdge e)

removeOut

public boolean removeOut(IEdge e)

removeInsFrom

public int removeInsFrom(IVertex head)

removeOutsTo

public int removeOutsTo(IVertex head)

findIns

public java.util.List findIns(java.lang.String attrname,
                              java.util.List ret)
Find edge with the given attribute.


findOuts

public java.util.List findOuts(java.lang.String attrname,
                               java.util.List ret)

findEdgesTo

public java.util.List findEdgesTo(IVertex v,
                                  java.lang.String attrname,
                                  java.util.List ret)

findEdgesFrom

public java.util.List findEdgesFrom(IVertex v,
                                    java.lang.String attrname,
                                    java.util.List ret)

findEdgesTo

public java.util.List findEdgesTo(IVertex v,
                                  java.util.List ret)

findEdgesFrom

public java.util.List findEdgesFrom(IVertex v,
                                    java.util.List ret)

clearEdges

public void clearEdges()

clearLayout

public void clearLayout()

neighbours

public java.util.Set neighbours()
Set of directly conected vertex. NOTE: The set returned should be considered read only. Add or remove of neighours should be done by add/remove edges.


reachable

public java.util.Set reachable()

isReachable

public boolean isReachable(IVertex v)