|
Size: 482
Comment:
|
← Revision 3 as of 2010-12-18 07:59:12 ⇥
Size: 486
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 17: | Line 17: |
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
