i'm going to get text data describing the existing nodes and arcs, and i'll need to draw it nicely in 2D, avoiding crossing arcs if possible.

i'd like to know if there are some libraries that do this (i need the coordinates of the nodes) , or some algos i could implement...
IDA shows something interesting for the disassembly flowchart so it must ve been done before...

if someone has already worked on this...

thak you very much!
Posted on 2005-10-11 10:53:10 by HeLLoWorld

I just found this links:

and they talk of aiSee, that seems to be the tool used in IDA...

but i will need to integrate the work in another project, so i'm rather looking for code/algos (my stuff wont even be C)
Posted on 2005-10-11 10:59:44 by HeLLoWorld
Well, iirc the flowchart in IDA is based on some GPL code...
Posted on 2005-10-11 11:47:00 by f0dder
http://www.research.att.com/sw/tools/graphviz/ I have finded it via doxygen that also use this for generate some graphs for functions in the documentation or some like that (havent used it much).

See the examples in the page (with doxygen) http://www.graphviz.org/pub/graphviz/CURRENT/doxygen/html/structAgedge__t.html
Posted on 2005-10-11 12:43:06 by rea
IDA uses wingraph32.exe and that can be obtained from an instalation of the free IDA version.
The same tool is used by 2 Ollydbg plug-ins OllyFLow and OllyGraph that do the same as IDA...

Yes, wingraph32 is a GPL application.  Source code  is avalable from IDA and from the internet.
Posted on 2005-10-12 01:42:42 by BogdanOntanu
in case someone needs this one day... i've found exactly what i was looking for:



parses text files with nodes/arcs and outputs textfiles with nodes/arcs coordinates!

(or outputs bmp/jpg)

Posted on 2005-10-14 06:39:54 by HeLLoWorld