R icon indicating copy to clipboard operation
R copied to clipboard

Feat graph colouring

Open Prathameshk2024 opened this issue 2 months ago • 4 comments

• Assigns colors to graph vertices ensuring no adjacent vertices share the same color • Uses backtracking approach for optimal solution • Finds chromatic number (minimum colors needed) • Implements greedy coloring for faster approximation • Includes Welsh-Powell algorithm (degree-based ordering) • Validates coloring solutions for correctness • Demonstrates with multiple test cases (triangle, Petersen, bipartite, random graphs) • Time complexity: O(m^V), Space complexity: O(V) • Production-ready implementation with comprehensive examples

Prathameshk2024 avatar Oct 19 '25 08:10 Prathameshk2024