|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.quilt.graph.Edge
An edge in a Quilt graph. This is seen as a source/target pair, XXX but in fact the source field may be unnecessary.
| Field Summary | |
protected Vertex |
source_
|
protected Vertex |
target_
|
| Constructor Summary | |
Edge(Edge e)
Copy constructor. |
|
Edge(Vertex s,
Vertex t)
An edge in a directed graph. |
|
| Method Summary | |
static void |
checkForNull(java.lang.Object o,
java.lang.String what)
|
Directed |
getGraph()
|
Vertex |
getSource()
|
Vertex |
getTarget()
|
void |
insert(Vertex v)
Insert a vertex with a UnaryConnector into an edge. |
void |
setSource(Vertex v)
|
void |
setTarget(Vertex v)
Change the target of this edge. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Vertex source_
protected Vertex target_
| Constructor Detail |
public Edge(Vertex s,
Vertex t)
public Edge(Edge e)
| Method Detail |
public Vertex getSource()
public void setSource(Vertex v)
public Vertex getTarget()
public void setTarget(Vertex v)
public static void checkForNull(java.lang.Object o,
java.lang.String what)
public Directed getGraph()
public void insert(Vertex v)
v - The Vertex being inserted.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||