|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.graph.InOutEdgeList
An implementaion of EdgeList that groups edges into two categories, incoming and outgoing.
Constructor Summary | |
InOutEdgeList()
Creates a new InOutEdgeList object. |
Method Summary | |
void |
add(Edge edge)
Operation not supported. |
void |
addIn(Edge edge)
Adds an incoming edge to the edge list. |
void |
addOut(Edge edge)
Adds an outgoing edge to the edge list. |
boolean |
contains(Edge edge)
Determines if the edge list contains a certain edge. |
Edge |
getEdge(Node n1,
Node n2)
Returns an edge containted in the list specified by the two nodes. |
java.util.List |
getEdges()
Returns all the edges contained in the edge list. |
Edge |
getInEdge(Node n1,
Node n2)
Returns an incoming edge contained in the list specified by the two nodes. |
java.util.List |
getInEdges()
Returns the incoming edges contained in the edge list. |
java.util.List |
getOtherEdges(Edge edge)
Returns all edges present in the list minus the specified edge. |
java.util.List |
getOtherInEdges(Edge edge)
Returns all incoming edges minus the specified edge. |
java.util.List |
getOtherInNodes(Node node)
Returns the list of nodes that are incident to the set of incoming edges and not equal to the specified node. |
java.util.List |
getOtherNodes(Node node)
Returns the list of nodes that are incident to edges in the list which are not equal to the specified node. |
java.util.List |
getOtherOutEdges(Edge edge)
Returns all outgoing edges minus the specified edge. |
java.util.List |
getOtherOutNodes(Node node)
Returns the list of nodes that are incident to the set of outgoing edges and not equal to the specified node. |
Edge |
getOutEdge(Node n1,
Node n2)
Returns an outgoing edge contained in the list specified by the two nodes. |
java.util.List |
getOutEdges()
Returns the outgoing edges contained in the edge list. |
int |
getSize()
Returns the sum of the number of incoming and outgoing edges. |
void |
remove(Edge edge)
Removes both an incoming and outgoing edge. |
void |
removeIn(Edge edge)
Removes an incoming edge from the edge list. |
void |
removeOut(Edge edge)
Removes an outgoing 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 InOutEdgeList()
Method Detail |
public void add(Edge edge)
add
in interface EdgeList
edge
- the edge to be added.EdgeList.add(Edge)
public void addIn(Edge edge)
edge
- Edge ME!public void addOut(Edge edge)
edge
- Edgepublic void remove(Edge edge)
remove
in interface EdgeList
edge
- the edge to be removed.EdgeList.remove(Edge)
public void removeIn(Edge edge)
edge
- Edgepublic void removeOut(Edge edge)
edge
- public java.util.List getEdges()
getEdges
in interface EdgeList
public java.util.List getInEdges()
public java.util.List getOutEdges()
public Edge getEdge(Node n1, Node n2)
getEdge
in interface EdgeList
n1
- Noden2
- Node
public Edge getInEdge(Node n1, Node n2)
n1
- The source node of the edge.n2
- The terminal node of the edge.
public Edge getOutEdge(Node n1, Node n2)
n1
- The source node of the edge.n2
- The terminal node of the edge.
public java.util.List getOtherNodes(Node node)
getOtherNodes
in interface EdgeList
node
- The node not to be returned.
EdgeList.getOtherNodes(Node)
public java.util.List getOtherInNodes(Node node)
node
- Node
public java.util.List getOtherOutNodes(Node node)
node
- Node
public java.util.List getOtherEdges(Edge edge)
getOtherEdges
in interface EdgeList
edge
- The edge not to be returned.
EdgeList.getOtherEdges(Edge)
public java.util.List getOtherInEdges(Edge edge)
edge
- Edge
public java.util.List getOtherOutEdges(Edge edge)
edge
- Edge
public boolean contains(Edge edge)
EdgeList
contains
in interface EdgeList
EdgeList.contains(Edge)
public int getSize()
getSize
in interface EdgeList
EdgeList.getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |