From 84c485729d6c52b988259e7739bed582c54b12de Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Fri, 11 Sep 2020 16:18:46 +0900 Subject: [PATCH] Fix the issue that the order of subgraph does not idempotent --- internal/ccall/cgraph/graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ccall/cgraph/graph.c b/internal/ccall/cgraph/graph.c index 707f626..bf155c4 100644 --- a/internal/ccall/cgraph/graph.c +++ b/internal/ccall/cgraph/graph.c @@ -77,7 +77,7 @@ Agraph_t *agopen1(Agraph_t * g) g->n_id = agdtopen(g, &Ag_subnode_id_disc, Dttree); g->e_seq = agdtopen(g, g == agroot(g)? &Ag_mainedge_seq_disc : &Ag_subedge_seq_disc, Dttree); g->e_id = agdtopen(g, g == agroot(g)? &Ag_mainedge_id_disc : &Ag_subedge_id_disc, Dttree); - g->g_dict = agdtopen(g, &Ag_subgraph_id_disc, Dttree); + g->g_dict = agdtopen(g, &Ag_subgraph_id_disc, Dtlist); par = agparent(g); if (par) {