Package graph
Class AdjacencyMatrixGraph
java.lang.Object
graph.AbstractGraph
graph.AdjacencyMatrixGraph
- All Implemented Interfaces:
Graph
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
areAdjacent
(Vertex v, Vertex w) insertEdge
(Vertex v, Vertex w, Object obj) insertVertex
(Object obj) void
removeEdge
(Edge e) void
Methods inherited from class graph.AbstractGraph
aVertex, degree, edges, endVertices, numEdges, numVertices, opposite, vertices
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface graph.Graph
aVertex, degree, edges, endVertices, numEdges, numVertices, opposite, vertices
-
Constructor Details
-
AdjacencyMatrixGraph
public AdjacencyMatrixGraph()
-
-
Method Details
-
adjacentVertices
- Specified by:
adjacentVertices
in interfaceGraph
-
areAdjacent
- Specified by:
areAdjacent
in interfaceGraph
-
incidentEdges
- Specified by:
incidentEdges
in interfaceGraph
-
insertEdge
- Specified by:
insertEdge
in interfaceGraph
-
insertVertex
- Specified by:
insertVertex
in interfaceGraph
-
removeEdge
- Specified by:
removeEdge
in interfaceGraph
-
removeVertex
- Specified by:
removeVertex
in interfaceGraph
-