server/src/common/util/graph.h

33 lines
766 B
C
Raw Normal View History

/* vi: set ts=2:
+-------------------+ Christian Schlittchen <corwin@amber.kn-bremen.de>
| | Enno Rehling <enno@eressea-pbem.de>
| Eressea PBEM host | Katja Zedel <katze@felidae.kn-bremen.de>
| (c) 1998 - 2001 | Henning Peters <faroul@beyond.kn-bremen.de>
| | Ingo Wilken <Ingo.Wilken@informatik.uni-oldenburg.de>
+-------------------+ Stefan Reich <reich@halbling.de>
This program may not be used, modified or distributed
without prior permission by the authors of Eressea.
*/
#ifndef GRAPH_H
#define GRAPH_H
typedef struct node {
int marker;
void *object;
} node;
typedef struct edge {
int marker;
node *node1;
node *node2;
} edge;
typedef struct graph {
vset nodes;
vset edges;
} graph;
#endif