Class UndirectedGraphUnion<V,​E>

    • Method Detail

      • 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.