This project has the goal to allow a representation of any hyper-graph in C.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- hgraph.c: File holding the implementation of the functions declared at the header file;
- hgraph.h: Header file containing the declaration of functions and the documentation of each one.
GCC or any other C compiler. Compiled with GCC 5.4.0.
In order to show the graph, it will be needed any software capable to generate an image from a .dot
file, such as Graphviz.
apt-get install graphviz
Just clone the repository:
git clone https://github.com/Murillo2380/hypergraph_c.git
Files that need to be compiled:
- demo.c
- hgraph.c
Use the Makefile to compile the source code (if using GCC):
make
Then just run the file to generate the .dot
file to be displayed.
To generate the image from dot program (available if you have installed graphviz):
dot -Tpng hgraph.dot > anyname.png
There is a demo file that shows how to create a single HyperGraph. All functions and variables are documented in the header file.
To be added.
- Murillo Henrique Pedroso Ferreira
See also the list of contributors who participated in this project.
This project is licensed under the GNU GPL3.0 License - see the LICENSE.md file for details
- Billie Thompson for his README template.