|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--shared.GraphObject
|
+--shared.Edge
The Edge class stores information for the edges in the Graph class. This is part of the LEDA package Graph design. The comments in Graph also apply to the edge class.
| Field Summary | |
boolean |
hidden
TRUE if this Edge object is hidden, otherwise FALSE. |
Edge[] |
pred_adj_edge
Preceeding adjacent Edges. |
Edge |
rev
The Edge that is reverse in direction to this Edge object. |
Edge[] |
succ_adj_edge
Succesive adjacent Edges. |
Node[] |
term
Terminal Nodes for this Edge. |
| Fields inherited from class shared.GraphObject |
data,
id,
obj_list_pred,
obj_list_succ |
| Constructor Summary | |
Edge(Node terminal1,
Node terminal2,
java.lang.Object info)
Constructor. |
|
| Method Summary | |
Edge |
adj_pred()
Returns the first preceeding adjacent Edge. |
Edge |
adj_succ()
Returns the first successive adjacent Edge. |
void |
copy(Edge original)
Copies the specified Edge object into this Edge object. |
Edge |
cyclic_adj_pred()
Returns the first preceeding Edge instance from the source Node for this Edge instance. |
Edge |
cyclic_adj_succ()
Returns the first successive Edge instance from the source Node for this Edge instance. |
Edge |
cyclic_in_pred()
Returns the last Edge object before reaching a destination Node. |
Edge |
cyclic_in_succ()
Returns the first Edge object connected to the source Node. |
Graph |
graph_of()
Returns the Graph object which this Edge is a part of. |
Edge |
in_pred(Edge e)
Returns the adjacent preceeding Edge of the specified Edge object. |
Edge |
in_succ(Edge e)
Returns the succeding adjacent Edge of the specified Edge object. |
Node |
opposite(Node vertex,
Edge edge)
Returns the Node at the opposite end of the specified Edge connected to that Node. |
Edge |
Pred_Adj_Edge(int index)
Returns the specified preceeding adjacent Edge. |
Edge |
Pred_Adj_Edge(Node vertex)
Returns the preceeding adjacent Edge connected to the specified Node. |
void |
print_edge_entry(java.io.Writer out)
Displays the object currently stored in this Edge object. |
void |
print_edge(java.io.Writer out)
Displays this Edge object to the given Writer. |
Node |
source()
Returns the source Node for this Edge. |
Edge |
Succ_Adj_Edge(int index)
Returns the specified successive adjacent Edge. |
Edge |
Succ_Adj_Edge(Node vertex)
Returns the successive adjacent Edge connected to the specified Node. |
Node |
target()
Returns the target Node for this Edge. |
| Methods inherited from class shared.GraphObject |
index,
set_id |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public Edge[] succ_adj_edge
public Edge[] pred_adj_edge
public Node[] term
public Edge rev
public boolean hidden
| Constructor Detail |
public Edge(Node terminal1,
Node terminal2,
java.lang.Object info)
terminal1 - The origin terminal node.terminal2 - The destination terminal node.info - The Object containing data to be stored in thid Edge instance.| Method Detail |
public Node source()
public Node target()
public Node opposite(Node vertex,
Edge edge)
vertex - The Node instance at the given end of the Edge.edge - The Edge instance for which the opposite edn is requested.public Graph graph_of()
public void copy(Edge original)
original - The Edge instance to be copied.public Edge Succ_Adj_Edge(int index)
index - The number of the specified Edge. Must be 0 or 1.public Edge Pred_Adj_Edge(int index)
index - The number of the specified Edge. Must be 0 or 1.public Edge Succ_Adj_Edge(Node vertex)
vertex - The specified Node for which a connecting Edge is requested.public Edge Pred_Adj_Edge(Node vertex)
vertex - The specified Node for which a connecting Edge is requested.public Edge adj_succ()
public Edge adj_pred()
public Edge cyclic_adj_succ()
public Edge cyclic_adj_pred()
public Edge cyclic_in_succ()
public Edge cyclic_in_pred()
public Edge in_succ(Edge e)
e - The Edge for which the adjacent Edge is requested.public Edge in_pred(Edge e)
e - The Edge for which the adjacent Edge is requested.
public void print_edge_entry(java.io.Writer out)
throws java.io.IOException
out - The Writer to which the Edge information will be displayed.
public void print_edge(java.io.Writer out)
throws java.io.IOException
out - The Writer to which the Edge information will be displayed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||