Package graph
Class AdjacencyMatrixGraph
java.lang.Object
graph.AbstractGraph
graph.AdjacencyMatrixGraph
- All Implemented Interfaces:
Graph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanareAdjacent(Vertex v, Vertex w) insertEdge(Vertex v, Vertex w, Object obj) insertVertex(Object obj) voidremoveEdge(Edge e) voidMethods inherited from class graph.AbstractGraph
aVertex, degree, edges, endVertices, numEdges, numVertices, opposite, verticesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface graph.Graph
aVertex, degree, edges, endVertices, numEdges, numVertices, opposite, vertices
-
Constructor Details
-
AdjacencyMatrixGraph
public AdjacencyMatrixGraph()
-
-
Method Details
-
adjacentVertices
- Specified by:
adjacentVerticesin interfaceGraph
-
areAdjacent
- Specified by:
areAdjacentin interfaceGraph
-
incidentEdges
- Specified by:
incidentEdgesin interfaceGraph
-
insertEdge
- Specified by:
insertEdgein interfaceGraph
-
insertVertex
- Specified by:
insertVertexin interfaceGraph
-
removeEdge
- Specified by:
removeEdgein interfaceGraph
-
removeVertex
- Specified by:
removeVertexin interfaceGraph
-