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 }; |