# HG changeset patch # User deba # Date 1141055005 0 # Node ID 8cd6683382e04e6d750de06a5e4b28d13e9a609f # Parent 9b56cca61e2e8edca42d551d157509a2c7efeb0b Default constructor which allocates empty graphs diff -r 9b56cca61e2e -r 8cd6683382e0 lemon/full_graph.h --- a/lemon/full_graph.h Mon Feb 27 10:36:01 2006 +0000 +++ b/lemon/full_graph.h Mon Feb 27 15:43:25 2006 +0000 @@ -228,6 +228,9 @@ typedef ExtendedFullGraphBase Parent; /// \brief Constructor + FullGraph() { construct(0); } + + /// \brief Constructor /// FullGraph(int n) { construct(n); } @@ -452,6 +455,9 @@ typedef ExtendedFullUGraphBase Parent; /// \brief Constructor + FullUGraph() { construct(0); } + + /// \brief Constructor FullUGraph(int n) { construct(n); } /// \brief Resize the graph @@ -665,16 +671,25 @@ typedef ExtendedFullBpUGraphBase Parent; + FullBpUGraph() { + Parent::construct(0, 0); + } + FullBpUGraph(int aNodeNum, int bNodeNum) { Parent::construct(aNodeNum, bNodeNum); } + /// \brief Resize the graph /// void resize(int n, int m) { Parent::getNotifier(Edge()).clear(); Parent::getNotifier(UEdge()).clear(); Parent::getNotifier(Node()).clear(); + Parent::getNotifier(ANode()).clear(); + Parent::getNotifier(BNode()).clear(); construct(n, m); + Parent::getNotifier(ANode()).build(); + Parent::getNotifier(BNode()).build(); Parent::getNotifier(Node()).build(); Parent::getNotifier(UEdge()).build(); Parent::getNotifier(Edge()).build();