glejeune / node-graphviz

Node.js interface to the GraphViz graphing tool
http://algorithmique.net
MIT License
197 stars 58 forks source link

How to get x,y coords for a node? #11

Closed ghost closed 12 years ago

ghost commented 12 years ago

This inst really an issue, but more of a question. How do I get the coordinates of a node? I am using the example provided, but have not been able to find where/if the coordinates are stored.

I explored the graph object but such attributes do not seem to be there.

// Print the dot script console.log( g.to_dot() );

console.log(g); // There does not seem to be any such info in this object, nor is there any info on an individual node.

Any help on this would be much appreciated. Thank you.

ghost commented 12 years ago

Sorry, I forgot to render the graph first! Great work in this btw