Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Implement Graph Colouring Algorithm #2792

Open
THIRU-1074 opened this issue Oct 8, 2024 · 3 comments
Open

Feature Request: Implement Graph Colouring Algorithm #2792

THIRU-1074 opened this issue Oct 8, 2024 · 3 comments
Labels
enhancement New feature or request stale Author has not responded to the comments for over 2 weeks

Comments

@THIRU-1074
Copy link

THIRU-1074 commented Oct 8, 2024

Detailed description

I would like to request the implementation of a Graph Colouring Algorithm as a feature in this repository. Graph colouring is a way of assigning labels (often referred to as "colours") to the vertices of a graph such that no two adjacent vertices share the same label.

Context

This algorithm has multiple applications, including:

  • Scheduling Problems: Assigning timeslots to tasks without conflicts.
  • Map Coloring: Ensuring that no two adjacent regions share the same color.
  • Register Allocation in Compilers: Minimizing the use of registers in code generation.

Possible implementation

Implementation of a Greedy Graph colouring Algorithm as a baseline. This algorithm assigns the smallest possible colour to each vertex while ensuring that no two adjacent vertices share the same colour.
Additionally, an implementation of Backtracking can be provided to find more optimal solutions for graphs that require a minimal number of colours.

Additional information

(https://en.wikipedia.org/wiki/Graph_coloring)

@THIRU-1074 THIRU-1074 added the enhancement New feature or request label Oct 8, 2024
@ritk20
Copy link
Contributor

ritk20 commented Oct 9, 2024

Implementation of graph colouring using backtracking exists here. I guess other colouring algorithms can be added.

@THIRU-1074
Copy link
Author

Yes , DSatur is good to be implemented, this algorithm has better performance compared to existing one in repo.

Copy link
Contributor

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Author has not responded to the comments for over 2 weeks label Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale Author has not responded to the comments for over 2 weeks
Projects
None yet
Development

No branches or pull requests

2 participants