> Can any one tell me how to create > graph={ > "nodes": [ > { > "id": "n0", > "label": "A node", > "x": 0, [ ... elided ... ] > } > ] > } Taking a guess and guessing that graphviz might be useful for you: https://code.google.com/p/pydot/.