Index
All Packages
All Categories
By Author

ap (2)
cp (1)
dp (5)
exe (3)
gui (0)
gui/gtk (0)
gui/tk (4)
io (1)
lib (9)
math (0)
net (10)
nlp (17)
op (3)
os (1)
program (3)
sp (1)
tool (8)
wp (2)
xml (1)

Graph

type : package
id : mogul:/smiele/graph
section : mogul:/smiele
version : 0.2.2
blurb : graph data structure and basic graph algorithms implemented in C++
author : Mogul:/smiele/sebastian
category : lib
documentation : index.html
download : smiele-graph__1.2.5__source__0.2.2.pkg
smiele-graph__1.3.0__source__0.2.2.pkg
requires : C++ compiler
provides : x-ozlib://smiele/graph/graph.ozf
x-ozlib://smiele/graph/lib/graph.ozf
x-ozlib://smiele/graph/lib/node-array.ozf
x-ozlib://smiele/graph/lib/edge-array.ozf
x-ozlib://smiele/graph/lib/node-matrix.ozf
x-ozlib://smiele/graph/lib/edge-matrix.ozf
This package provides For efficiency the package is implemented in C++. The implementation of the graph data structure permits an efficient copying of instances so that the graph package performs well with the Mozart garbage collection and the cloning of computation spaces.

Graphs are implemented using doubly linked lists over the nodes and the ingoing and outgoing edges of nodes. This provides constant time adding, removing, hiding and restoring of nodes and edges. Apart from that a graph instance can be efficiently viewed as both, directed and undirected. In the directed version you always consider only outgoing edges of a node. In the undirected version you consider ingoing and outgoing edges, incident edges for short. Similary you can view a graph instance simultanously as its transpose simply by considering the inedges of nodes instead of their outedges.

The package comes with a nice user interface that is similar to the interface of LEDA graphs.

Until now the following graph algorithms are available: