a Single File Graph layout library in c and Java or python
Pedo Anton Lefering be1d0da99e update | 3 anos atrás | |
---|---|---|
d4dag | 3 anos atrás | |
data | 4 anos atrás | |
gcc | 3 anos atrás | |
hypersfg | 3 anos atrás | |
java | 4 anos atrás | |
java2 | 3 anos atrás | |
java3 | 3 anos atrás | |
javascript | 3 anos atrás | |
qsfg | 3 anos atrás | |
wasm | 3 anos atrás | |
.gitignore | 3 anos atrás | |
LICENSE | 4 anos atrás | |
Lindent | 4 anos atrás | |
Makefile | 3 anos atrás | |
README.md | 3 anos atrás | |
README1 | 3 anos atrás | |
TODO | 3 anos atrás | |
cflow-csf-c.txt | 3 anos atrás | |
dmake | 4 anos atrás | |
gen-callgraph.sh | 3 anos atrás | |
gml4gtk-calltree-program.png | 3 anos atrás | |
hypersfg-screenshot.png | 3 anos atrás | |
mkedges.sh | 3 anos atrás | |
objcg.peg | 3 anos atrás | |
objlibcg.peg | 3 anos atrás | |
qsfg.png | 3 anos atrás | |
qsfg2.png | 3 anos atrás | |
screenshot.png | 4 anos atrás | |
screenshotps.png | 4 anos atrás | |
sfg-c-callgraph-program.gv | 3 anos atrás | |
sfg-callgraph-from-asm.gv | 3 anos atrás | |
sfg-callgraph.gv | 3 anos atrás | |
sfg-cflow-callfraph.gv | 3 anos atrás | |
sfg.c | 3 anos atrás | |
sfg.c.scallgraph.gv | 3 anos atrás | |
sfg.h | 3 anos atrás | |
sfgdemo-callgraph.gv | 3 anos atrás | |
sfgdemo.c | 4 anos atrás | |
sfgdemo.c.scallgraph.gv | 3 anos atrás | |
sfgdemo.ps | 4 anos atrás | |
sfgdemo.py | 4 anos atrás | |
sfgdemo.sh | 4 anos atrás | |
sfgdemo.svg | 4 anos atrás | |
sfgdemo.txt | 4 anos atrás | |
sfgs.c | 4 anos atrás | |
tree2dotx.sh | 3 anos atrás |
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: