Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
constructors and destructors for graph structures
[simgrid.git] / src / xbt / graph_private.h
1 #include "xbt/misc.h"
2 #include "xbt/sysdep.h"
3 #include "xbt/dynar.h"
4
5 /* Node structure */
6 /* typedef struct xbt_node *xbt_node_t; */
7 typedef struct xbt_node 
8 {
9   xbt_dynar_t out;
10   xbt_dynar_t in;
11   void *data;
12 } s_xbt_node_t;
13
14 /* edge structure */
15 /* typedef struct xbt_edge *xbt_edge_t; */
16 typedef struct xbt_edge 
17 {
18   xbt_node_t src;
19   xbt_node_t dst;
20   void *data;
21 } s_xbt_edge_t;
22
23 /* Graph structure */
24 /* typedef struct xbt_graph *xbt_graph_t; */
25 typedef struct xbt_graph 
26 {
27   xbt_dynar_t nodes;
28   xbt_dynar_t edges;
29   unsigned short int directed;
30   void *data;
31 } s_xbt_graph_t;
32