V
- the graph vertex typeE
- the graph edge typepublic class UndirectedGraphUnion<V,E> extends GraphUnion<V,E,UndirectedGraph<V,E>> implements UndirectedGraph<V,E>
Modifier and Type | Method and Description |
---|---|
int |
degreeOf(V vertex)
Returns the degree of the specified vertex.
|
addEdge, addEdge, addVertex, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, getG1, getG2, removeEdge, removeEdge, removeVertex, vertexSet
assertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet
public int degreeOf(V vertex)
UndirectedGraph
degreeOf
in interface UndirectedGraph<V,E>
vertex
- vertex whose degree is to be calculated.Copyright © 2017. All rights reserved.