#define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id)
+void
+initGraph (Agraph_t* g)
+{
+ aginit(g, AGNODE, "nodeinfo", sizeof(Agnodeinfo_t), TRUE);
+}
+
#if 0
static void
posStr (int len_buf, char* buf, int dim, real* x, double sc)
#include <logic.h>
#include <arith.h>
#include <memory.h>
-#endif
+#endif /* STANDALONE */
#define real double
typedef unsigned int boolean;
-extern int Verbose;
-
-#else
+#else /* STANDALONE */
#define MALLOC gmalloc
#define REALLOC grealloc
#endif /* STANDALONE */
extern double _statistics[10];
#endif
+extern unsigned char Verbose;
+
extern int irand(int n);
extern real drand(void);
extern int *random_permutation(int n);/* random permutation of 0 to n-1 */