Class ColoringAlgoAbstract

    • Constructor Detail

      • ColoringAlgoAbstract

        public ColoringAlgoAbstract()
        Default constructor.
    • Method Detail

      • computeColoring

        public <V,​E> VertexPartition<V,​E> computeColoring​(Graph<V,​E> g)
        Description copied from interface: ColoringAlgo
        Assign a color to each vertex of the given graph, while minimizing the number of different colors.

        If g is IntGraph, the returned object is IVertexPartition.

        Specified by:
        computeColoring in interface ColoringAlgo
        Type Parameters:
        V - the vertices type
        E - the edges type
        Parameters:
        g - a graph
        Returns:
        a valid coloring with (hopefully) small number of different colors