src/hugo/smart_graph.h
changeset 904 b40afcf42a4d
parent 897 ef09eee53b09
child 905 5be029d19c98
equal deleted inserted replaced
15:0eda45a93884 16:d00c0c625f53
    71     class NodeIt;
    71     class NodeIt;
    72     class EdgeIt;
    72     class EdgeIt;
    73     class OutEdgeIt;
    73     class OutEdgeIt;
    74     class InEdgeIt;
    74     class InEdgeIt;
    75     
    75     
    76     /// Creating map registries.
    76     // Create map registries.
    77     CREATE_MAP_REGISTRIES;
    77     CREATE_MAP_REGISTRIES;
    78     /// Creating node and edge maps.
    78     // Create node and edge maps.
    79     CREATE_MAPS(ArrayMap);
    79     CREATE_MAPS(ArrayMap);
    80     
    80     
    81   public:
    81   public:
    82 
    82 
    83     SmartGraph() : nodes(), edges() { }
    83     SmartGraph() : nodes(), edges() { }
   315   class SymSmartGraph : public SmartGraph
   315   class SymSmartGraph : public SmartGraph
   316   {
   316   {
   317   public:
   317   public:
   318     typedef SymSmartGraph Graph;
   318     typedef SymSmartGraph Graph;
   319 
   319 
   320     /// Creating symmetric map registry.
   320     // Create symmetric map registry.
   321     CREATE_SYM_EDGE_MAP_REGISTRY;
   321     CREATE_SYM_EDGE_MAP_REGISTRY;
   322     /// Creating symmetric edge map.
   322     // Create symmetric edge map.
   323     CREATE_SYM_EDGE_MAP(ArrayMap);
   323     CREATE_SYM_EDGE_MAP(ArrayMap);
   324 
   324 
   325 
   325 
   326     SymSmartGraph() : SmartGraph() { }
   326     SymSmartGraph() : SmartGraph() { }
   327     SymSmartGraph(const SmartGraph &_g) : SmartGraph(_g) { }
   327     SymSmartGraph(const SmartGraph &_g) : SmartGraph(_g) { }