-
Notifications
You must be signed in to change notification settings - Fork 120
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
Introduce Welsh Powell Algorithm #383
Comments
Hi there, I'm working on this problem on my branch https://github.com/badumbatish/CXXGraph/tree/welsh_powell_coloring and hit an obstacle. The algorithm returns an unordered_map of shared_ptrs of nodes where the value is the color order of each node.
When coloring, for each vertex, I'm trying to access its neighbor's color value in mapOfColoring with mapOfColoring[neighbor] to calculate the minimum color order needed for each vertex but the problem is that mapOfColoring is populated with source vertices, where neighbors are destination vertices. So none of the neighbor is actually in mapOfColoring. I'm wondering if there is a way to approach this problem? |
Hi there, please don't close this issue yet, I noticed that there is some improvement to be made for my code to be more elegant. |
Ok, @badumbatish |
Please introduce Welsh Powell Coloring Algorithm
The text was updated successfully, but these errors were encountered: