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, waitMethods inherited from interface directedgraph.DirectedGraph
areAdjacent, inAdjacentVertices, inIncidentEdges, insertDirectedEdge, insertVertex, makeUndirected, outAdjacentVertices, outIncidentEdges, removeEdge, removeVertex, reverseDirection, setDirectionFrom, setDirectionTo
-
Method Details
-
aVertex
- Specified by:
aVertexin interfaceDirectedGraph
-
vertices
- Specified by:
verticesin interfaceDirectedGraph
-
opposite
- Specified by:
oppositein interfaceDirectedGraph
-
endVertices
- Specified by:
endVerticesin interfaceDirectedGraph
-
edges
- Specified by:
edgesin interfaceDirectedGraph
-
numEdges
public int numEdges()- Specified by:
numEdgesin interfaceDirectedGraph
-
numVertices
public int numVertices()- Specified by:
numVerticesin interfaceDirectedGraph
-
destination
- Specified by:
destinationin interfaceDirectedGraph
-
origin
- Specified by:
originin interfaceDirectedGraph
-
inDegree
- Specified by:
inDegreein interfaceDirectedGraph
-
outDegree
- Specified by:
outDegreein interfaceDirectedGraph
-