|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbyucc.jhdl.synth.graph.Edge
Represents a directed edge in a graph. This simple data structure only contains the head and tail of an edge. Users may want to subclass this object to provide an Edge with properites (i.e. weights, etc.).
| Field Summary | |
protected Vertex |
head
|
protected Vertex |
tail
|
| Constructor Summary | |
Edge(Vertex t,
Vertex h)
Construct a new directed edge from tail -> head. |
|
| Method Summary | |
protected java.lang.String |
edgeDotLabels()
|
protected java.lang.String |
edgeDotProperties()
|
boolean |
equals(java.lang.Object obj)
Overrides Object.equals to determine if two edges are equal. |
Vertex |
getHead()
Get the head of this edge. |
Vertex |
getTail()
Get the tail of this edge. |
void |
setHead(Vertex h)
Change this edge to point to the given vertex instead. |
void |
setProperty(java.lang.String key,
java.lang.String value)
|
void |
setTail(Vertex t)
Change this edge to point from the given vertex instead. |
java.lang.String |
toDot()
Get a String representation of the current edge in Dot file format. |
java.lang.String |
toString()
Get a String representation of the current edge. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Vertex head
protected Vertex tail
| Constructor Detail |
public Edge(Vertex t,
Vertex h)
t - The vertex that is the tail of the new edge,
(the vertex from which the edge leaves).h - The vertex that is the head of the new edge,
(the vertex to which the edge points).| Method Detail |
public Vertex getHead()
public Vertex getTail()
public void setHead(Vertex h)
h - the new head Vertex at which this Edge should point.public void setTail(Vertex t)
t - the new tail Vertex from which this Edge should point.public boolean equals(java.lang.Object obj)
obj - an object, (likely an Edge object)
protected java.lang.String edgeDotProperties()
protected java.lang.String edgeDotLabels()
public void setProperty(java.lang.String key,
java.lang.String value)
public final java.lang.String toDot()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||