Click here to Skip to main content
15,867,317 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I need a proper working code in python for graph coloring with input as adjacency matrix.

my input file is as follows:

7
0 1 1 0 1 1 0
1 0 0 1 0 1 1
1 0 0 1 1 1 0
0 1 1 0 0 1 1
1 0 1 0 0 0 1
1 1 1 1 0 0 0
0 1 0 1 1 0 0

first line represents the number of vertices.
Posted
Comments
[no name] 26-Apr-14 13:06pm    
Is it maybe possible to give some more information?

And by the way the one who has down voted the question: Pls stop doing this....it should be a right to ask a question....every question is ok, but sometimes answers are stupid ;)
Matt T Heffron 27-Apr-14 16:26pm    
The question was probably downvoted NOT because it was a "stupid" question, but because it was asking for someone to give the code without any evidence that the OP even attempted to solve the question on their own. THAT IS deserving of the downvote.
[no name] 3-May-14 11:21am    
Now IT IS NOT! Let also beginners -like me- ask question, without being afraid, stomped into the ground!!! damn again :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900