Package directedgraph
Class AdjacencyMatrixDirectedGraph
java.lang.Object
directedgraph.AbstractDirectedGraph
directedgraph.AdjacencyMatrixDirectedGraph
- All Implemented Interfaces:
DirectedGraph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanareAdjacent(Vertex v, Vertex w) insertDirectedEdge(Vertex v, Vertex w, Object obj) insertVertex(Object obj) voidvoidremoveEdge(Edge e) voidvoidvoidsetDirectionFrom(Edge e, Vertex v) voidsetDirectionTo(Edge e, Vertex v) Methods inherited from class directedgraph.AbstractDirectedGraph
aVertex, destination, edges, endVertices, inDegree, numEdges, numVertices, opposite, origin, outDegree, verticesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface directedgraph.DirectedGraph
aVertex, destination, edges, endVertices, inDegree, numEdges, numVertices, opposite, origin, outDegree, vertices
-
Constructor Details
-
AdjacencyMatrixDirectedGraph
public AdjacencyMatrixDirectedGraph()
-
-
Method Details
-
inAdjacentVertices
- Specified by:
inAdjacentVerticesin interfaceDirectedGraph
-
outAdjacentVertices
- Specified by:
outAdjacentVerticesin interfaceDirectedGraph
-
areAdjacent
- Specified by:
areAdjacentin interfaceDirectedGraph
-
inIncidentEdges
- Specified by:
inIncidentEdgesin interfaceDirectedGraph
-
outIncidentEdges
- Specified by:
outIncidentEdgesin interfaceDirectedGraph
-
insertDirectedEdge
- Specified by:
insertDirectedEdgein interfaceDirectedGraph
-
insertVertex
- Specified by:
insertVertexin interfaceDirectedGraph
-
makeUndirected
- Specified by:
makeUndirectedin interfaceDirectedGraph
-
reverseDirection
- Specified by:
reverseDirectionin interfaceDirectedGraph
-
setDirectionFrom
- Specified by:
setDirectionFromin interfaceDirectedGraph
-
setDirectionTo
- Specified by:
setDirectionToin interfaceDirectedGraph
-
removeEdge
- Specified by:
removeEdgein interfaceDirectedGraph
-
removeVertex
- Specified by:
removeVertexin interfaceDirectedGraph
-