| 1 | initial version |
It is doable as follows:
sage: G.plot(color_by_label={'a':'red', 'b':'blue', 'c':'green'})
| 2 | No.2 Revision |
It is doable as follows:
sage: G.plot(color_by_label={'a':'red', 'b':'blue', 'c':'green'})
If you are lazy, you can let Sage decide the colors for you:
sage: G.plot(color_by_label=True)
| 3 | No.3 Revision |
It is doable as follows:
sage: G.plot(color_by_label={'a':'red', 'b':'blue', 'c':'green'})
If you are lazy, you can let Sage decide the colors for you:
sage: G.plot(color_by_label=True)
Of course you can use the other options if needed:
sage: G.plot(edge_labels=True, graph_border=True, color_by_label={'a':'red', 'b':'blue', 'c':'green'})
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.