neo_doxygen: Make `ProjectGraph.put_edges` overwriting the old edges.
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Mon, 17 Nov 2014 22:13:04 +0000 (17:13 -0500)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Mon, 24 Nov 2014 14:49:56 +0000 (09:49 -0500)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

contrib/neo_doxygen/src/model/graph.nit

index e14d817..7607620 100644 (file)
@@ -60,6 +60,7 @@ class ProjectGraph
 
        # Request to all nodes in the graph to add their related edges.
        fun put_edges do
+               all_edges.clear
                add_edge(project, "ROOT", by_id[""])
                for n in all_nodes do
                        if n isa Entity then