Package directedgraph
Class AdjacencyMatrixDirectedGraph
java.lang.Object
directedgraph.AbstractDirectedGraph
directedgraph.AdjacencyMatrixDirectedGraph
- All Implemented Interfaces:
DirectedGraph
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
areAdjacent
(Vertex v, Vertex w) insertDirectedEdge
(Vertex v, Vertex w, Object obj) insertVertex
(Object obj) void
void
removeEdge
(Edge e) void
void
void
setDirectionFrom
(Edge e, Vertex v) void
setDirectionTo
(Edge e, Vertex v) Methods inherited from class directedgraph.AbstractDirectedGraph
aVertex, destination, edges, endVertices, inDegree, numEdges, numVertices, opposite, origin, outDegree, vertices
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
inAdjacentVertices
in interfaceDirectedGraph
-
outAdjacentVertices
- Specified by:
outAdjacentVertices
in interfaceDirectedGraph
-
areAdjacent
- Specified by:
areAdjacent
in interfaceDirectedGraph
-
inIncidentEdges
- Specified by:
inIncidentEdges
in interfaceDirectedGraph
-
outIncidentEdges
- Specified by:
outIncidentEdges
in interfaceDirectedGraph
-
insertDirectedEdge
- Specified by:
insertDirectedEdge
in interfaceDirectedGraph
-
insertVertex
- Specified by:
insertVertex
in interfaceDirectedGraph
-
makeUndirected
- Specified by:
makeUndirected
in interfaceDirectedGraph
-
reverseDirection
- Specified by:
reverseDirection
in interfaceDirectedGraph
-
setDirectionFrom
- Specified by:
setDirectionFrom
in interfaceDirectedGraph
-
setDirectionTo
- Specified by:
setDirectionTo
in interfaceDirectedGraph
-
removeEdge
- Specified by:
removeEdge
in interfaceDirectedGraph
-
removeVertex
- Specified by:
removeVertex
in interfaceDirectedGraph
-