public class OptDirectedNode extends OptGraphable implements DirectedNode
DirectedNode,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
class |
OptDirectedNode.RelatedIterator
Iterator used to iterate over related nodes.
|
| Constructor and Description |
|---|
OptDirectedNode()
Constructs a new OptDirectedNode.
|
OptDirectedNode(int indegree,
int outdegree)
Constructs a new OptDirectedNode.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Edge e)
Not supported.
|
void |
addIn(DirectedEdge e)
Adds an edge to the in adjacency list of the node.
|
void |
addOut(DirectedEdge e)
Adds an edge to the out adjacency list of the node.
|
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.
|
List |
getEdges()
Returns the edge adjacency list of the node.
|
List |
getEdges(Node other)
Returns a collection of edges in the adjacency list of the node that are adjacent to another
specified node.
|
int |
getInDegree()
Returns the in degree of the node.
|
Edge |
getInEdge(DirectedNode other)
Returns an edge that terminates at the node and originates from a specified node.
|
DirectedEdge[] |
getInEdgeArray()
Returns the in adjacency edge array of the node.
|
List |
getInEdges()
Returns the in adjacency list of the node.
|
List |
getInEdges(DirectedNode other)
Returns all edges that terminate at the node and originate from a specified node.
|
Iterator |
getInRelated()
This iterator iterates over the underlying in edge array of the node.
|
int |
getOutDegree()
Returns the out degree of the node.
|
Edge |
getOutEdge(DirectedNode other)
Returns an edge that originates at the node and terminates at a specified node.
|
DirectedEdge[] |
getOutEdgeArray()
Returns the out adjacency edge array of the node.
|
List |
getOutEdges()
Returns the out adjacency list of the node.
|
List |
getOutEdges(DirectedNode other)
Returns all edges that originate at the node and terminate from at specified node.
|
Iterator |
getOutRelated()
This iterator iterates over the underlying out edge array of the node.
|
Iterator |
getRelated()
This iterator iterates over the underlying edge arrays of the node.
|
void |
remove(Edge e)
Unsupported Operation.
|
void |
removeIn(DirectedEdge e)
Unsupported Operation.
|
void |
removeOut(DirectedEdge e)
Unsupported Operation.
|
void |
setInDegree(int indegree)
Sets the in degree of the node.
|
void |
setOutDegree(int outdegree)
Sets the out degree of the node.
|
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisitedpublic OptDirectedNode()
public OptDirectedNode(int indegree,
int outdegree)
indegree - Number of in adjacenct edges to the node.outdegree - Number of out adjacent edges to the node.public void add(Edge e)
add in interface Nodee - Adjacent edge to add.UnsupportedOperationExceptionpublic void addIn(DirectedEdge e)
DirectedNodeaddIn in interface DirectedNodee - A directed edge that terminates at the node.DirectedNode.addIn(DirectedEdge)public void addOut(DirectedEdge e)
DirectedNodeaddOut in interface DirectedNodee - A directed edge that originates from the node.DirectedNode.addOut(DirectedEdge)public void remove(Edge e)
remove in interface Nodee - Adjacent edge to remove.UnsupportedOperationExceptionpublic void removeIn(DirectedEdge e)
removeIn in interface DirectedNodee - A directed edge that terminates at the node.UnsupportedOperationExceptionNode.remove(Edge)public void removeOut(DirectedEdge e)
removeOut in interface DirectedNodee - A directed edge that originates from the node.UnsupportedOperationExceptionNode.remove(Edge)public Edge getEdge(Node other)
NodegetEdge in interface Nodeother - The other node that the desired edge to return is adjacent to.Node.getEdge(Node)public Edge getInEdge(DirectedNode other)
DirectedNodegetInEdge in interface DirectedNodeother - The originating node.DirectedNode.getInEdge(DirectedNode)public Edge getOutEdge(DirectedNode other)
DirectedNodegetOutEdge in interface DirectedNodeother - The terminating node.DirectedNode.getOutEdge(DirectedNode)public List getEdges(Node other)
NodegetEdges in interface Nodeother - The other node that the desired edges to return are adjacent to.Node.getEdges(Node)public List getInEdges(DirectedNode other)
DirectedNodegetInEdges in interface DirectedNodeother - The originating node.DirectedNode.getInEdges(DirectedNode)public List getOutEdges(DirectedNode other)
DirectedNodegetOutEdges in interface DirectedNodeother - The temimnating node.DirectedNode.getOutEdges(DirectedNode)public List getEdges()
NodegetEdges in interface NodeNode.getEdges()public DirectedEdge[] getInEdgeArray()
public List getInEdges()
DirectedNodegetInEdges in interface DirectedNodeDirectedNode.getInEdges()public DirectedEdge[] getOutEdgeArray()
public List getOutEdges()
DirectedNodegetOutEdges in interface DirectedNodeDirectedNode.getOutEdges()public int getDegree()
NodegetDegree in interface NodeNode.getDegree()public void setInDegree(int indegree)
indegree - The in degree / size of in edge array of the node.public int getInDegree()
DirectedNodegetInDegree in interface DirectedNodeDirectedNode.getInDegree()public void setOutDegree(int outdegree)
outdegree - The out degree / size of out edge array of the node.public int getOutDegree()
DirectedNodegetOutDegree in interface DirectedNodeDirectedNode.getOutDegree()public Iterator getRelated()
getRelated in interface GraphableGraphable.getRelated()public Iterator getInRelated()
getInRelated in interface DirectedGraphableDirectedGraphable.getInRelated()public Iterator getOutRelated()
getOutRelated in interface DirectedGraphableGraphable.getRelated()Copyright © 1996–2019 Geotools. All rights reserved.