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

Using this environment for greedy coloring #52

Open
sundar19 opened this issue Dec 31, 2022 · 2 comments
Open

Using this environment for greedy coloring #52

sundar19 opened this issue Dec 31, 2022 · 2 comments

Comments

@sundar19
Copy link

Hello,
I am studying this project and need to know if this environment can be used for something similar to greedy_color() in networkx. My intention is to solve allocating color/Number to every node such that no two nodes next to each other have the same color. Instead of doing this with greedy_color() I want to use reinforcement learning methods to solve this problem. Any suggestions would be appreciated.

@jlaw9
Copy link
Collaborator

jlaw9 commented Jan 6, 2023

Hi @sundar19 . Sure you do that. You just need to be able to formalize the problem into an action space (e.g., select a node and change its color) with a reward (e.g., -1 * number of colors). We have a couple example problems you should be able to use as a starting point here: https://nrel.github.io/graph-env. The TSP example specifically should help.

If you need ideas for how approach the graph coloring problem with RL, looks like others have done work on this problem: https://github.com/barisbatuhan/Graph_Coloring_with_RL.

If you have more specific questions or issues, we'd be happy to help.

@sundar19
Copy link
Author

sundar19 commented Jan 7, 2023

@jlaw9 Thank you so much for the support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants