public interface DirectedNode extends Node, DirectedGraphable
DirectedGraph| Modifier and Type | Method and Description |
|---|---|
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 |
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.
|
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.
|
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.
|
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.
|
void |
removeIn(DirectedEdge e)
Removes an edge from the in adjacency list of the node.
|
void |
removeOut(DirectedEdge e)
Removes an edge from the out adjacency list of node.
|
getInRelated, getOutRelatedgetCount, getID, getObject, getRelated, isVisited, setCount, setID, setObject, setVisitedvoid addIn(DirectedEdge e)
e - A directed edge that terminates at the node.Node.add(Edge)void addOut(DirectedEdge e)
e - A directed edge that originates from the node.Node.add(Edge)void removeIn(DirectedEdge e)
e - A directed edge that terminates at the node.Node.remove(Edge)void removeOut(DirectedEdge e)
e - A directed edge that originates from the node.Node.remove(Edge)Edge getInEdge(DirectedNode other)
other - The originating node.Node.getEdge(Node)List getInEdges(DirectedNode other)
other - The originating node.Node.getEdges(Node)List getInEdges()
Node.getEdges()Edge getOutEdge(DirectedNode other)
other - The terminating node.Node.getEdge(Node)List getOutEdges(DirectedNode other)
other - The temimnating node.Node.getEdges(Node)List getOutEdges()
Node.getEdges()int getInDegree()
int getOutDegree()
Copyright © 1996–2019 Geotools. All rights reserved.