lemon/full_graph.h
changeset 1988 875fe3f689e0
parent 1986 9b56cca61e2e
child 1993 2115143eceea
equal deleted inserted replaced
16:8d0a5cbb5a34 17:9a8420a902d6
   226   public:
   226   public:
   227 
   227 
   228     typedef ExtendedFullGraphBase Parent;
   228     typedef ExtendedFullGraphBase Parent;
   229 
   229 
   230     /// \brief Constructor
   230     /// \brief Constructor
       
   231     FullGraph() { construct(0); }
       
   232 
       
   233     /// \brief Constructor
   231     ///
   234     ///
   232     FullGraph(int n) { construct(n); }
   235     FullGraph(int n) { construct(n); }
   233 
   236 
   234     /// \brief Resize the graph
   237     /// \brief Resize the graph
   235     ///
   238     ///
   448   /// \author Balazs Dezso
   451   /// \author Balazs Dezso
   449   class FullUGraph : public ExtendedFullUGraphBase {
   452   class FullUGraph : public ExtendedFullUGraphBase {
   450   public:
   453   public:
   451 
   454 
   452     typedef ExtendedFullUGraphBase Parent;
   455     typedef ExtendedFullUGraphBase Parent;
       
   456 
       
   457     /// \brief Constructor
       
   458     FullUGraph() { construct(0); }
   453 
   459 
   454     /// \brief Constructor
   460     /// \brief Constructor
   455     FullUGraph(int n) { construct(n); }
   461     FullUGraph(int n) { construct(n); }
   456 
   462 
   457     /// \brief Resize the graph
   463     /// \brief Resize the graph
   663     public ExtendedFullBpUGraphBase {
   669     public ExtendedFullBpUGraphBase {
   664   public:
   670   public:
   665 
   671 
   666     typedef ExtendedFullBpUGraphBase Parent;
   672     typedef ExtendedFullBpUGraphBase Parent;
   667 
   673 
       
   674     FullBpUGraph() {
       
   675       Parent::construct(0, 0);
       
   676     }
       
   677 
   668     FullBpUGraph(int aNodeNum, int bNodeNum) {
   678     FullBpUGraph(int aNodeNum, int bNodeNum) {
   669       Parent::construct(aNodeNum, bNodeNum);
   679       Parent::construct(aNodeNum, bNodeNum);
   670     }
   680     }
       
   681 
   671     /// \brief Resize the graph
   682     /// \brief Resize the graph
   672     ///
   683     ///
   673     void resize(int n, int m) {
   684     void resize(int n, int m) {
   674       Parent::getNotifier(Edge()).clear();
   685       Parent::getNotifier(Edge()).clear();
   675       Parent::getNotifier(UEdge()).clear();
   686       Parent::getNotifier(UEdge()).clear();
   676       Parent::getNotifier(Node()).clear();
   687       Parent::getNotifier(Node()).clear();
       
   688       Parent::getNotifier(ANode()).clear();
       
   689       Parent::getNotifier(BNode()).clear();
   677       construct(n, m);
   690       construct(n, m);
       
   691       Parent::getNotifier(ANode()).build();
       
   692       Parent::getNotifier(BNode()).build();
   678       Parent::getNotifier(Node()).build();
   693       Parent::getNotifier(Node()).build();
   679       Parent::getNotifier(UEdge()).build();
   694       Parent::getNotifier(UEdge()).build();
   680       Parent::getNotifier(Edge()).build();
   695       Parent::getNotifier(Edge()).build();
   681     }
   696     }
   682   };
   697   };