Skip to content

Murillo2380/hypergraph_c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HyperGraph in C

This project has the goal to allow a representation of any hyper-graph in C.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Important files

  • 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.

Prerequisites

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

Installing

Just clone the repository:

git clone https://github.com/Murillo2380/hypergraph_c.git

Running the demo

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.

Generating an image from dot file

To generate the image from dot program (available if you have installed graphviz):

dot -Tpng hgraph.dot > anyname.png

How to use

There is a demo file that shows how to create a single HyperGraph. All functions and variables are documented in the header file.

Contributing

To be added.

Authors

  • Murillo Henrique Pedroso Ferreira

See also the list of contributors who participated in this project.

License

This project is licensed under the GNU GPL3.0 License - see the LICENSE.md file for details

Acknowledgments

About

An implementation of an hypergraph in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published