Package graph
Interface Graph
- All Known Implementing Classes:
AbstractGraph
,AdjacencyListGraph
,AdjacencyMatrixGraph
public interface Graph
An undirected graph.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
areAdjacent
(Vertex v, Vertex w) aVertex()
int
edges()
Vertex[]
endVertices
(Edge e) insertEdge
(Vertex v, Vertex w, Object obj) insertVertex
(Object obj) int
numEdges()
int
void
removeEdge
(Edge e) void
vertices()
-
Method Details
-
numVertices
int numVertices() -
numEdges
int numEdges() -
vertices
-
edges
-
aVertex
Vertex aVertex() -
degree
-
adjacentVertices
-
incidentEdges
-
endVertices
-
opposite
-
areAdjacent
-
insertEdge
-
insertVertex
-
removeVertex
-
removeEdge
-