Book
Advanced Engineering Mathematics
Author
Erwin Kreyszig
Edition
8th Edition
g=Graph() g = Graph({1:[2,4,6], 2:[1,3,5],3:[2,4,6],4:[3,1,5],5:[2,4,6],6:[1,3,5]}); g.plot() g.coloring() [[2, 4, 6], [1, 3, 5]] //output g.chromatic_number() 2 //output //code demonstrates adjacent vertices are colored differently
Solution by:
- Koumudi, Student, SNIST