org._3pq.jgrapht
Interface UndirectedGraph
- Graph
- AsUndirectedGraph, ListenableUndirectedGraph, ListenableUndirectedWeightedGraph, Multigraph, Pseudograph, SimpleGraph, SimpleWeightedGraph, UndirectedSubgraph, UndirectedWeightedSubgraph, UnmodifiableUndirectedGraph, WeightedMultigraph, WeightedPseudograph
public interface UndirectedGraph
int | degreeOf(Object vertex)- Returns the degree of the specified vertex.
|
addAllEdges, addAllVertices, addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet |
degreeOf
public int degreeOf(Object vertex)
Returns the degree of the specified vertex. A degree of a vertex in an
undirected graph is the number of edges touching that vertex.
vertex - vertex whose degree is to be calculated.
- the degree of the specified vertex.