[Lemon-commits] [lemon_svn] deba: r2585 - hugo/trunk/lemon

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:53:43 CET 2006


Author: deba
Date: Mon Feb 27 16:43:25 2006
New Revision: 2585

Modified:
   hugo/trunk/lemon/full_graph.h

Log:
Default constructor which allocates empty graphs



Modified: hugo/trunk/lemon/full_graph.h
==============================================================================
--- hugo/trunk/lemon/full_graph.h	(original)
+++ hugo/trunk/lemon/full_graph.h	Mon Feb 27 16:43:25 2006
@@ -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();



More information about the Lemon-commits mailing list