Package com.jgalgo

Interface Coloring.Result

  • Enclosing interface:
    Coloring

    public static interface Coloring.Result
    A coloring result containing a color for each vertex.
    Author:
    Barak Ugav
    • Method Detail

      • colorsNum

        int colorsNum()
        The total number of different colors used in the coloring.
        Returns:
        number of different colors
      • colorOf

        int colorOf​(int vertex)
        Get the color assigned to a vertex.
        Parameters:
        vertex - a vertex identifier in the graph
        Returns:
        a color of the vertex, represented as integer