Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnynek/netmodeler
a C++ package for analyzing and modeling network/graph structure.
https://github.com/johnynek/netmodeler
Last synced: 3 months ago
JSON representation
a C++ package for analyzing and modeling network/graph structure.
- Host: GitHub
- URL: https://github.com/johnynek/netmodeler
- Owner: johnynek
- License: gpl-2.0
- Created: 2009-03-31T16:38:11.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-03-23T02:46:42.000Z (almost 14 years ago)
- Last Synced: 2023-10-26T05:23:44.929Z (about 1 year ago)
- Language: C++
- Homepage: http://boykin.acis.ufl.edu/wiki/index.php/Netmodeler
- Size: 1.89 MB
- Stars: 7
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: COPYING
Awesome Lists containing this project
README
Netmodeler uses the autoconf and automake build system.
There is a script called bootstrap.sh which should allow you to build
everything (for those of us that have not bothered to understand
autoconf).After running the bootstrap code, you may need to go into the src
directory and typemake netmodeler.h
(Obviously the above is purely due to the author's autoconf/automake
ignorance).After that, you are on your own!
The above should make the libnetmod.a library and the netmodeler executable from
the main.cpp in the main library. This main.cpp probably is not exactly what
you want. Check the examples directory for simpler examples.To write your own code you just use any parts you would like, then using the
compiler, link to the libnetmod.a. For g++ (the GNU C++ compiler), you could
do the following:First compile your my.cpp:
g++ -c my.cpp -I /path/to/headers/
Then link it:
g++ -o test my.o /path/to/library/libnetmod.aThe default path is src/.libs/libnetmod.a
now, the executible "test" should be your code.
You may need to give a complete path to the headers (which is represented in
the above example as /path/to/headers/) and you may need to give the complete
path to the libnetmod.a file (which is represented above as
/path/to/library/).You may want to make new classes in /src/ directory.
After making new files (Let's name them yourfile.cpp and yourfile.h), You need to add your files to the input to Makefile.
Add yourfile.cpp and yourfile.h to 'libnetmod_la_SOURCES' in /src/Makefile.in
Add yourfile.lo to 'am_libnetmod_la_OBJECTS' in /src/Makefile.in
run 'make' in the upper directory.
Now, you can use your own classes.======SWIG/Python Support=====
Netmodeler now has some support for SWIG, which allows us to use netmodeler
from languages other than C/C++. To enable this, use:./configure --enable-swig
This requires swig to be installed as well as the headers for python (and
in the future maybe other languages). Go to the pytools directory to see
some examples of using python with netmodeler.======CODE DOCUMENTATION======
The source code is annotated with doxygen (Javadoc) style comments. Not all
of the code is properly documented, but much of it is. To produce this
documentation, go into the doc directory, and type:doxygen netmodeler.doxy
Of course, you will need doxygen installed. This will produce HTML and latex
documentation that should help you get an idea of the structure of the code.
If you are lost, I recommend looking at the software in the tools directory
for examples of code that does something useful.Good Luck,
POB
[email protected]