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<? extends Edge> |
getInEdges()
Returns the in adjacency list of the node.
|
List<? extends Edge> |
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<? extends Edge> |
getOutEdges()
Returns the out adjacency list of the node.
|
List<? extends Edge> |
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, getOutRelated
getCount, getID, getObject, getRelated, isVisited, setCount, setID, setObject, setVisited
void 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<? extends Edge> getInEdges(DirectedNode other)
other
- The originating node.Node.getEdges(Node)
List<? extends Edge> getInEdges()
Node.getEdges()
Edge getOutEdge(DirectedNode other)
other
- The terminating node.Node.getEdge(Node)
List<? extends Edge> getOutEdges(DirectedNode other)
other
- The temimnating node.Node.getEdges(Node)
List<? extends Edge> getOutEdges()
Node.getEdges()
int getInDegree()
int getOutDegree()
Copyright © 1996–2023 Geotools. All rights reserved.