Package directedgraph
Interface DirectedGraph
- All Known Implementing Classes:
AbstractDirectedGraph
,AdjacencyListDirectedGraph
,AdjacencyMatrixDirectedGraph
public interface DirectedGraph
A graph which has directed edges.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
areAdjacent
(Vertex v, Vertex w) aVertex()
destination
(Edge e) edges()
Vertex[]
endVertices
(Edge e) int
insertDirectedEdge
(Vertex v, Vertex w, Object obj) insertVertex
(Object obj) void
int
numEdges()
int
int
void
removeEdge
(Edge e) void
void
void
setDirectionFrom
(Edge e, Vertex v) void
setDirectionTo
(Edge e, Vertex v) vertices()
-
Method Details
-
numVertices
int numVertices() -
numEdges
int numEdges() -
vertices
-
edges
-
aVertex
Vertex aVertex() -
endVertices
-
opposite
-
areAdjacent
-
insertVertex
-
insertDirectedEdge
-
removeVertex
-
removeEdge
-
destination
-
origin
-
inDegree
-
outDegree
-
inIncidentEdges
-
outIncidentEdges
-
inAdjacentVertices
-
outAdjacentVertices
-
makeUndirected
-
reverseDirection
-
setDirectionFrom
-
setDirectionTo
-