|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.geotools.graph.BasicEdgeList
Basic implentation of an edge adjacency list.
EdgeList| Constructor Summary | |
BasicEdgeList()
Creates the edge list. |
|
| Method Summary | |
void |
add(Edge edge)
Adds an edge to the edge list. |
boolean |
contains(Edge edge)
Determines if the edge list contains a certain edge. |
boolean |
contains(Edge edge,
boolean reverse)
Determines if an edge is contained in the list. |
Edge |
getEdge(Node n1,
Node n2)
Returns an edge in the list ended by specfic nodes. |
java.util.List |
getEdges()
Returns the edges contained in the edge list. |
java.util.List |
getOtherEdges(Edge edge)
Returns the edges in the list minus a specific edge. |
java.util.List |
getOtherNodes(Node node)
Returns a collection of nodes adjacent to edges in the list minus a specifc node. |
int |
getSize()
Returns the size of the edge list. |
void |
remove(Edge edge)
Removed an edge from the edge list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicEdgeList()
| Method Detail |
public void add(Edge edge)
EdgeList
add in interface EdgeListedge - the edge to be added.EdgeList.add(Edge)public void remove(Edge edge)
EdgeList
remove in interface EdgeListedge - the edge to be removed.EdgeList.remove(Edge)public java.util.List getEdges()
EdgeList
getEdges in interface EdgeListEdgeList.getEdges()
public Edge getEdge(Node n1,
Node n2)
EdgeList
getEdge in interface EdgeListn1 - Starting Edge Noden2 - Ending Edge Node
EdgeList.getEdge(Node, Node)public int getSize()
EdgeList
getSize in interface EdgeListEdgeList.getSize()public java.util.List getOtherNodes(Node node)
EdgeList
getOtherNodes in interface EdgeListnode - The node not to be returned.
EdgeList.getOtherNodes(Node)public java.util.List getOtherEdges(Edge edge)
EdgeList
getOtherEdges in interface EdgeListedge - The edge not to be returned.
EdgeList.getOtherEdges(Edge)public boolean contains(Edge edge)
EdgeList
contains in interface EdgeListEdgeList.contains(Edge)
public boolean contains(Edge edge,
boolean reverse)
edge - Edge to test for existance in list.reverse - Wether or not consider two edges that are the reverse of
each other equal. True if so, otherwise false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||