]> granicus.if.org Git - graphviz/commitdiff
Fix bug due to conversion to cgraph
authorerg <devnull@localhost>
Thu, 31 Jul 2008 22:23:56 +0000 (22:23 +0000)
committererg <devnull@localhost>
Thu, 31 Jul 2008 22:23:56 +0000 (22:23 +0000)
cmd/tools/mm2gv.c

index d2b17bd5a4c320fd73b47ae82e504cb040f98fe2..762ac67d6572d02e1de7813cb81fe1bc4f04af05 100644 (file)
@@ -260,7 +260,6 @@ makeDotGraph (SparseMatrix A, char *name, int dim, real *x, int with_color, int
   } else {
     g = agopen ("G", Agdirected, (Agdisc_t *) 0);
   }
-  aginit (g, AGNODE, "nodeinfo", sizeof(Agnodeinfo_t), TRUE);
   sprintf (buf, "%f", 1.0);
 
   label_string = strcpy(label_string, name);
@@ -282,6 +281,7 @@ makeDotGraph (SparseMatrix A, char *name, int dim, real *x, int with_color, int
   for (i = 0; i < A->m; i++) {
     sprintf (buf, "%d", i);
     n = agnode (g, buf, 1);
+    agbindrec (n, "nodeinfo", sizeof(Agnodeinfo_t), TRUE);
     ND_id(n) = i;
     arr[i] = n;
   }