Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
extending the graph structure to handle last dtd modifications
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 28 Mar 2006 10:31:31 +0000 (10:31 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 28 Mar 2006 10:31:31 +0000 (10:31 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2004 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/graph_private.h

index 6adc68a..6074161 100644 (file)
@@ -16,6 +16,8 @@ typedef struct xbt_node
 {
   xbt_dynar_t out;
   xbt_dynar_t in;  /* not used when the graph is directed */
+  double position_x; /* positive value: negative means undefined */
+  double position_y; /* positive value: negative means undefined */
   void *data;      /* user data */
   void *xbtdata;   /* private xbt data: should be reinitialized at the
                      beginning of your algorithm if you need to use it */  
@@ -30,7 +32,7 @@ typedef struct xbt_edge
   void *data;      /* user data */
   void *xbtdata;   /* private xbt data: should be reinitialized at the
                      beginning of your algorithm if you need to use it */  
-  double length;
+  double length;   /* positive value: negative means undefined */
 } s_xbt_edge_t;
 
 /* Graph structure */