Package com.jgalgo

Interface CoreAlgo.Result

  • Enclosing interface:
    CoreAlgo

    public static interface CoreAlgo.Result
    The result of the cores computation.
    Author:
    Barak Ugav
    • Method Detail

      • vertexCoreNum

        int vertexCoreNum​(int v)
        The core number of the given vertex.

        The core number of a vertex is the highest order of a core that contains this vertex.

        Parameters:
        v - a vertex in the graph
        Returns:
        the core number of the vertex
      • maxCore

        int maxCore()
        The maximum core number of the graph.
        Returns:
        the maximum core number of the graph
      • coreVertices

        IntCollection coreVertices​(int core)
        The vertices of the given core.
        Parameters:
        core - the core number (order)
        Returns:
        the vertices of the core