Libgraph

Libgraph is an implementation of the TurboC graphics API (graphics.h) on GNU/Linux using SDL (Simple DirectMedia Layer). Functions for text display are based heavily on code “borrowed” from Karl Bartel’s SFont Library.

libgraph is for graph data structures. libgraph provides data structures STL programmers are used to. It is capable of storing elements of any C++ data type in a collection and provides methods of iteration as well as storing and retrieving adjacency information between the graph elements. Using template arguments arbitrary data types of vertex and edge properties can be used. This makes it very easy to create graphs where for instance the vertices are labeled or edges have a capacity and a flow. A complete scheme-API is also provided as a loadable guile module.

To install this, first download it from the following link:

Libgraph

Paste it in home folder and Extract here. Now open the terminal and write-

Wait, install few packages before-

$ sudo apt-get install libsdl-image1.2 libsdl-image1.2-dev guile-1.8 guile-1.8-dev libsdl1.2debian libart-2.0-dev libaudiofile-dev libesd0-dev libdirectfb-dev libdirectfb-extra libfreetype6-dev libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev libslang2-dev libasound2 libasound2-dev

Now,

$ cd libgraph-1.0.2

$ ./configure

$ sudo make

$ sudo make install

$ sudo cp /usr/local/lib/libgraph.* /usr/lib

Done ^_^

Advertisements

One thought on “Libgraph

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s