#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)
aginit(g, AGNODE, "info", sizeof(Agnodeinfo_t), TRUE);
}
+void setDotNodeID (Agnode_t* n, int v)
+{
+ ND_id(n) = v;
+}
+
+int getDotNodeID (Agnode_t* n)
+{
+ return ND_id(n);
+}
+
extern void initDotIO (Agraph_t *g);
extern Agraph_t* SparseMatrix_read_dot(FILE*);
+extern void setDotNodeID (Agnode_t* n, int v);
+extern int getDotNodeID (Agnode_t* n);
+
/* extern void attach_embedding(Agraph_t *g, int dim, double sc, real *x); */
extern SparseMatrix SparseMatrix_import_dot(Agraph_t* g, int dim, real **label_sizes, real **x, int *n_edge_label_nodes,
int **edge_label_nodes, int format, SparseMatrix *D);