Package org.jgrapht.graph
Class UndirectedGraphUnion<V,E>
java.lang.Object
org.jgrapht.graph.AbstractGraph<V,E>
org.jgrapht.graph.GraphUnion<V,E,UndirectedGraph<V,E>>
org.jgrapht.graph.UndirectedGraphUnion<V,E>
- All Implemented Interfaces:
Serializable,Graph<V,,E> UndirectedGraph<V,E>
public class UndirectedGraphUnion<V,E>
extends GraphUnion<V,E,UndirectedGraph<V,E>>
implements UndirectedGraph<V,E>
- See Also:
-
Method Summary
Methods inherited from class org.jgrapht.graph.GraphUnion
addEdge, addEdge, addVertex, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, getG1, getG2, removeEdge, removeEdge, removeVertex, vertexSetMethods inherited from class org.jgrapht.graph.AbstractGraph
assertVertexExist, containsEdge, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSetsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jgrapht.Graph
addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet
-
Method Details
-
degreeOf
Description copied from interface:UndirectedGraphReturns the degree of the specified vertex. A degree of a vertex in an undirected graph is the number of edges touching that vertex.- Specified by:
degreeOfin interfaceUndirectedGraph<V,E> - Parameters:
vertex- vertex whose degree is to be calculated.- Returns:
- the degree of the specified vertex.
-