Some python code for graph representation (visusalization with pygraphviz)