Graph nodes coordinates evaluation

Sergey Lapin picture Sergey Lapin · Mar 22, 2013 · Viewed 17.5k times · Source

Which of these (https://stackoverflow.com/questions/492893/graph-drawing-c-library) libraries can be used to evaluate nodes coordinates? I mean I want to draw and manipulate graph by clicking on it to add some nodes or delete, and then evaluate coordinates using some lightweight library.

All I need is algorithm which could on dot file and speciefied layout (http://en.wikipedia.org/wiki/DOT_language) give me conformity of graph nodes and 2D points.

Prefferable languages: C++, C#, Java

Answer

Federico Berasategui picture Federico Berasategui · Mar 22, 2013

I made a complete WPF MVVM sample of a "Nodes Editor" supporting drag and drop, and many interesting visual features. It looks like this:

enter image description here

Full Source Code on GitHub