Package directedgraph
Class AbstractDirectedGraph
java.lang.Object
directedgraph.AbstractDirectedGraph
- All Implemented Interfaces:
DirectedGraph
- Direct Known Subclasses:
AdjacencyListDirectedGraph
,AdjacencyMatrixDirectedGraph
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface directedgraph.DirectedGraph
areAdjacent, inAdjacentVertices, inIncidentEdges, insertDirectedEdge, insertVertex, makeUndirected, outAdjacentVertices, outIncidentEdges, removeEdge, removeVertex, reverseDirection, setDirectionFrom, setDirectionTo
-
Method Details
-
aVertex
- Specified by:
aVertex
in interfaceDirectedGraph
-
vertices
- Specified by:
vertices
in interfaceDirectedGraph
-
opposite
- Specified by:
opposite
in interfaceDirectedGraph
-
endVertices
- Specified by:
endVertices
in interfaceDirectedGraph
-
edges
- Specified by:
edges
in interfaceDirectedGraph
-
numEdges
public int numEdges()- Specified by:
numEdges
in interfaceDirectedGraph
-
numVertices
public int numVertices()- Specified by:
numVertices
in interfaceDirectedGraph
-
destination
- Specified by:
destination
in interfaceDirectedGraph
-
origin
- Specified by:
origin
in interfaceDirectedGraph
-
inDegree
- Specified by:
inDegree
in interfaceDirectedGraph
-
outDegree
- Specified by:
outDegree
in interfaceDirectedGraph
-