Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
keep up with last Darina's modifications of the DTD
[simgrid.git] / src / xbt / graph_private.h
1 /*      $Id$     */
2
3 /* Copyright (c) 2006 Darina Dimitrova, Arnaud Legrand. 
4    All rights reserved.                  */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #ifndef _XBT_GRAPH_PRIVATE_H
10 #define _XBT_GRAPH_PRIVATE_H
11 #include "xbt/dynar.h"
12
13 /* Node structure */
14 /* typedef struct xbt_node *xbt_node_t; */
15 typedef struct xbt_node 
16 {
17   xbt_dynar_t out;
18   xbt_dynar_t in;
19   void *data;
20 } s_xbt_node_t;
21
22 /* edge structure */
23 /* typedef struct xbt_edge *xbt_edge_t; */
24 typedef struct xbt_edge 
25 {
26   xbt_node_t src;
27   xbt_node_t dst;
28   void *data;
29 } s_xbt_edge_t;
30
31 /* Graph structure */
32 /* typedef struct xbt_graph *xbt_graph_t; */
33 typedef struct xbt_graph 
34 {
35   xbt_dynar_t nodes;
36   xbt_dynar_t edges;
37   unsigned short int directed;
38   void *data;
39 } s_xbt_graph_t;
40
41 #endif                          /* _XBT_GRAPH_PRIVATE_H */