COIN-OR::LEMON - Graph Library

Changeset 2031:080d51024ac5 in lemon-0.x for lemon/smart_graph.h


Ignore:
Timestamp:
04/03/06 11:45:23 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2670
Message:

Correcting the structure of the graph's and adaptor's map.
The template assign operators and map iterators can be used for adaptors also.

Some bugfix in the adaptors

New class SwapBpUGraphAdaptor which swaps the two nodeset of the graph.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/smart_graph.h

    r1999 r2031  
    576576    }
    577577
     578    typedef True NodeNumTag;
     579    int nodeNum() const { return aNodes.size() + bNodes.size(); }
     580    int aNodeNum() const { return aNodes.size(); }
     581    int bNodeNum() const { return bNodes.size(); }
     582
     583    typedef True EdgeNumTag;
     584    int edgeNum() const { return edges.size(); }
     585
    578586  };
    579587
Note: See TracChangeset for help on using the changeset viewer.