| java.lang.Object org.quilt.graph.Vertex
All known Subclasses: org.quilt.graph.Entry, org.quilt.cl.CodeVertex, org.quilt.graph.Exit,
Vertex | public class Vertex (Code) | | A vertex in a directed graph.
author: < a href="jddixon@users.sourceforge.net">Jim Dixon |
Constructor Summary | |
protected | Vertex() Creates a vertex without an index and belonging to no graph. | public | Vertex(Directed g) Creates a vertex belonging to a graph, assigns an index unique
within this graph. |
connector | protected Connector connector(Code) | | Connects this vertex to one or more other vertices.
|
index | protected int index(Code) | | Unique non-negative assigned to the Vertex; -1 means 'unassigned'
|
Vertex | protected Vertex()(Code) | | Creates a vertex without an index and belonging to no graph.
|
Vertex | public Vertex(Directed g)(Code) | | Creates a vertex belonging to a graph, assigns an index unique
within this graph.
Parameters: g - The graph the vertex belongs to. |
above | public boolean above(Directed g)(Code) | | Is the graph a parent, grandparent of this vertex?
Parameters: g - Candidate progenitor. True if match is found. |
checkForNull | public static void checkForNull(Object o, String what)(Code) | | Throw an exception if the argument is null.
Parameters: o - Argument being checked Parameters: what - What it is - for error message. |
getGraph | public Directed getGraph()(Code) | | Get the graph this vertex is in.
|
getIndex | public int getIndex()(Code) | | Vertex index, a non-negative integer. |
makeBinary | public Edge makeBinary()(Code) | | Convert the existing connector to a BinaryConnector.
The 'other' edge created. |
makeComplex | public ComplexConnector makeComplex(int n)(Code) | | Convert the exiting connector to a ComplexConnector, using the
existing Edge as seed.
|
makeMulti | public MultiConnector makeMulti(int n)(Code) | | Convert the exiting connector to a MultiConnector, using the
existing Edge as seed.
|
setLabel | public void setLabel(String s)(Code) | | Assign a label to the Vertex.
|
toString | public String toString()(Code) | | A String in parent-index:my-index form. |
|
|