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 Details

    • degreeOf

      public int degreeOf(V vertex)
      Description copied from interface: UndirectedGraph
      Returns 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:
      degreeOf in interface UndirectedGraph<V,E>
      Parameters:
      vertex - vertex whose degree is to be calculated.
      Returns:
      the degree of the specified vertex.