|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.graph.structure.basic.BasicGraphable org.geotools.graph.structure.basic.BasicNode
Basic implementation of Node.
Constructor Summary | |
BasicNode()
Constructs a BasicNode. |
Method Summary | |
void |
add(Edge e)
Adds an edge to the adjacency list of the node which is an underlying List implementation. |
int |
getDegree()
Returns the degree of the node. |
Edge |
getEdge(Node other)
Returns an edge in the adjacency list of the node that is adjacent to another specified node. |
java.util.List |
getEdges()
Returns the edge adjacency list of the node. |
java.util.List |
getEdges(Node other)
Returns a collection of edges in the adjacency list of the node that are adjacent to another specified node. |
java.util.Iterator |
getRelated()
Returns all nodes that are incident with adjacent edges minus itself. |
void |
remove(Edge e)
Removes an edge from the adjacency list of the node. |
Methods inherited from class org.geotools.graph.structure.basic.BasicGraphable |
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisited, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.geotools.graph.structure.Graphable |
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisited |
Constructor Detail |
public BasicNode()
Method Detail |
public void add(Edge e)
add
in interface Node
e
- Adjacent edge to add.Node.add(Edge)
public void remove(Edge e)
Node
remove
in interface Node
e
- Adjacent edge to remove.Node.remove(Edge)
public int getDegree()
Node
getDegree
in interface Node
Node.getDegree()
public Edge getEdge(Node other)
Node
getEdge
in interface Node
other
- The other node that the desired edge to return is adjacent to.
Node.getEdge(Node)
public java.util.List getEdges(Node other)
Node
getEdges
in interface Node
other
- The other node that the desired edges to return are
adjacent to.
Node.getEdges(Node)
public java.util.List getEdges()
Node
getEdges
in interface Node
Node.getEdges()
public java.util.Iterator getRelated()
getRelated
in interface Graphable
Graphable.getRelated()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |