1.1 --- a/src/hugo/smart_graph.h Fri Sep 03 14:26:03 2004 +0000
1.2 +++ b/src/hugo/smart_graph.h Fri Sep 03 15:11:17 2004 +0000
1.3 @@ -12,7 +12,7 @@
1.4
1.5 #include <hugo/invalid.h>
1.6
1.7 -#include <hugo/array_map_factory.h>
1.8 +#include <hugo/default_map_factory.h>
1.9 #include <hugo/sym_map_factory.h>
1.10 #include <hugo/map_registry.h>
1.11
1.12 @@ -73,7 +73,7 @@
1.13 class InEdgeIt;
1.14
1.15 CREATE_MAP_REGISTRIES;
1.16 - CREATE_MAPS(ArrayMapFactory);
1.17 + CREATE_MAPS(DefaultMapFactory);
1.18
1.19 public:
1.20
1.21 @@ -296,7 +296,7 @@
1.22 KEEP_EDGE_MAP(SmartGraph);
1.23
1.24 CREATE_SYM_EDGE_MAP_REGISTRY;
1.25 - CREATE_SYM_EDGE_MAP_FACTORY(ArrayMapFactory);
1.26 + CREATE_SYM_EDGE_MAP_FACTORY(DefaultMapFactory);
1.27 IMPORT_SYM_EDGE_MAP(SymEdgeMapFactory);
1.28
1.29 SymSmartGraph() : SmartGraph() { }
1.30 @@ -305,7 +305,9 @@
1.31 Edge addEdge(Node u, Node v)
1.32 {
1.33 Edge e = SmartGraph::addEdge(u,v);
1.34 - SmartGraph::addEdge(v,u);
1.35 + Edge f = SmartGraph::addEdge(v,u);
1.36 + sym_edge_maps.add(e);
1.37 + sym_edge_maps.add(f);
1.38 return e;
1.39 }
1.40