a Single File Graph layout library in c and Java or python
Pedo Anton Lefering be1d0da99e update | 3 éve | |
---|---|---|
d4dag | 3 éve | |
data | 4 éve | |
gcc | 3 éve | |
hypersfg | 3 éve | |
java | 4 éve | |
java2 | 4 éve | |
java3 | 4 éve | |
javascript | 4 éve | |
qsfg | 3 éve | |
wasm | 3 éve | |
.gitignore | 3 éve | |
LICENSE | 4 éve | |
Lindent | 4 éve | |
Makefile | 3 éve | |
README.md | 3 éve | |
README1 | 3 éve | |
TODO | 3 éve | |
cflow-csf-c.txt | 3 éve | |
dmake | 4 éve | |
gen-callgraph.sh | 3 éve | |
gml4gtk-calltree-program.png | 3 éve | |
hypersfg-screenshot.png | 3 éve | |
mkedges.sh | 3 éve | |
objcg.peg | 3 éve | |
objlibcg.peg | 3 éve | |
qsfg.png | 3 éve | |
qsfg2.png | 3 éve | |
screenshot.png | 4 éve | |
screenshotps.png | 4 éve | |
sfg-c-callgraph-program.gv | 3 éve | |
sfg-callgraph-from-asm.gv | 3 éve | |
sfg-callgraph.gv | 3 éve | |
sfg-cflow-callfraph.gv | 3 éve | |
sfg.c | 3 éve | |
sfg.c.scallgraph.gv | 3 éve | |
sfg.h | 3 éve | |
sfgdemo-callgraph.gv | 3 éve | |
sfgdemo.c | 4 éve | |
sfgdemo.c.scallgraph.gv | 3 éve | |
sfgdemo.ps | 4 éve | |
sfgdemo.py | 4 éve | |
sfgdemo.sh | 4 éve | |
sfgdemo.svg | 4 éve | |
sfgdemo.txt | 4 éve | |
sfgs.c | 4 éve | |
tree2dotx.sh | 3 éve |
a Single File Graph layout library in c and Java https://graphviewer.nl
See sfgdemo.c or sfg.h and the README1 file for details
In directory hypersfg is GNU GPL Free QT5 gui program using this graph library to see it.
The directory wasm is about compiling sfg.c to wasm and run sugiyama graph layout in the browser see this test version
To make the demo program sfgdemo type make
To cleanup use make clean
To indent the source use make indent
To show complexity of the C source using complexity tool use make comp
To check for memory leaks use make valgrind
To make libsfg.a use make sfga
To make libsfg.so use make sfgaso
To make python module with swig use make swigpython
To make perl module with swig use make swigperl
To make c++ with swig use make swigcplus
To make go with swig use make swiggo
To make java with swig use make swigjava
Also javascript, php, modula3 and more interfacing
to sfg.c can be generated with swig software
Using llvm compiler run scan-build-8 make
It compiles to javascript using emscripten emcc compiler
The python script sfgdemo.py runs graph layout using sfg.c
In the java directory is the Java source and a jar file
To run the Java version of sfg use: java -jar sfg.jar
Because sfg.c only needs calloc()/free() it is usable for embedded software
To create callgraph as graphviz dot format the GNU cflow program can be used
cflow sfg.c | ./tree2x.sh >sfg-callgraph-cflow.gv
Also the calltree program can be used from schilytools at https://sourceforge.net/projects/schilytools/
Example output of calltree -dot sfg.c is in sfg-c-callgraph-program.gv
In directory gcc are patches for gcc compiler
The next iteration of sfg.c is called d4dag.c
In directory qsfg is a modified qvge qt5 graph editor running sfg.c graph layouter like this: