| 1 | initial version |
The part of your question related to colors is answered there: http://ask.sagemath.org/question/25413/graph-colored-edge-labels/
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.