|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.geotools.graph.GraphComponent
org.geotools.graph.Node
A Node is a point in the graph which which is incident 0 or more edges.
| Nested Class Summary |
| Nested classes inherited from class org.geotools.feature.Feature |
org.geotools.feature.Feature.NULL |
| Constructor Summary | |
Node(org.geotools.feature.Feature feature,
EdgeList edgeList)
Creates a node. |
|
| Method Summary | |
void |
addEdge(Edge edge)
Adds an edge to the adjacency list of the node. |
com.vividsolutions.jts.geom.Geometry |
buildGeometry()
Builds a Geometry object to represent the node spatially. |
java.util.Collection |
getAdjacentElements()
Returns a collection of nodes adjacent to this node. |
int |
getDegree()
Returns the degree of the node. |
Edge |
getEdge(Node other)
Returns an edge incident with this node and another node. |
EdgeList |
getEdgeList()
Returns the adjacency list of the node. |
java.util.Collection |
getOtherEdges(Edge edge)
Returns a collection of edges adjacent minus a specified edge. |
void |
removeEdge(Edge edge)
Removes an edge from the adjacency list of the node. |
java.lang.String |
toString()
Returns a string representation of the node. |
| Methods inherited from class org.geotools.graph.GraphComponent |
compareTo, getAttribute, getAttribute, getAttributes, getBounds, getCount, getDefaultGeometry, getFeature, getFeatureType, getID, getNumberOfAttributes, getParent, getSchema, isVisited, schema, setAttribute, setAttribute, setAttributes, setCount, setDefaultGeometry, setParent, setVisited |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Node(org.geotools.feature.Feature feature,
EdgeList edgeList)
feature - The underlying Feature represented by the node.edgeList - A list of edges adjacent to the node.GraphComponent(Feature),
Feature| Method Detail |
public void addEdge(Edge edge)
edge - An edge adjacent to the node.public void removeEdge(Edge edge)
edge - Edge to be removed.public EdgeList getEdgeList()
public Edge getEdge(Node other)
other - A node at the other end of an adjacent edge.
public int getDegree()
public java.util.Collection getOtherEdges(Edge edge)
edge - the edge not to be returned.
public java.util.Collection getAdjacentElements()
getAdjacentElements in class GraphComponentGraphComponent.getAdjacentElements()public com.vividsolutions.jts.geom.Geometry buildGeometry()
buildGeometry in class GraphComponentGraphComponent.buildGeometry(),
Geometrypublic java.lang.String toString()
Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||