COIN-OR::LEMON - Graph Library

Changeset 1987:8cd6683382e0 in lemon-0.x


Ignore:
Timestamp:
02/27/06 16:43:25 (19 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2585
Message:

Default constructor which allocates empty graphs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/full_graph.h

    r1986 r1987  
    229229
    230230    /// \brief Constructor
     231    FullGraph() { construct(0); }
     232
     233    /// \brief Constructor
    231234    ///
    232235    FullGraph(int n) { construct(n); }
     
    451454
    452455    typedef ExtendedFullUGraphBase Parent;
     456
     457    /// \brief Constructor
     458    FullUGraph() { construct(0); }
    453459
    454460    /// \brief Constructor
     
    666672    typedef ExtendedFullBpUGraphBase Parent;
    667673
     674    FullBpUGraph() {
     675      Parent::construct(0, 0);
     676    }
     677
    668678    FullBpUGraph(int aNodeNum, int bNodeNum) {
    669679      Parent::construct(aNodeNum, bNodeNum);
    670680    }
     681
    671682    /// \brief Resize the graph
    672683    ///
     
    675686      Parent::getNotifier(UEdge()).clear();
    676687      Parent::getNotifier(Node()).clear();
     688      Parent::getNotifier(ANode()).clear();
     689      Parent::getNotifier(BNode()).clear();
    677690      construct(n, m);
     691      Parent::getNotifier(ANode()).build();
     692      Parent::getNotifier(BNode()).build();
    678693      Parent::getNotifier(Node()).build();
    679694      Parent::getNotifier(UEdge()).build();
Note: See TracChangeset for help on using the changeset viewer.