Interface UndirectedGraph

    • Method Detail

      • degreeOf

        int degreeOf​(java.lang.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.
        Parameters:
        vertex - vertex whose degree is to be calculated.
        Returns:
        the degree of the specified vertex.