Changeset 1979:c2992fd74dad in lemon-0.x for lemon/full_graph.h
- Timestamp:
- 02/22/06 19:26:56 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2569
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/full_graph.h
r1956 r1979 23 23 24 24 25 #include <lemon/bits/iterable_graph_extender.h>26 #include <lemon/bits/alteration_notifier.h>27 #include <lemon/bits/static_map.h>28 25 #include <lemon/bits/graph_extender.h> 26 29 27 30 28 #include <lemon/invalid.h> … … 192 190 }; 193 191 194 typedef StaticMappableGraphExtender< 195 IterableGraphExtender< 196 AlterableGraphExtender< 197 GraphExtender<FullGraphBase> > > > ExtendedFullGraphBase; 192 typedef GraphExtender<FullGraphBase> ExtendedFullGraphBase; 198 193 199 194 /// \ingroup graphs … … 212 207 public: 213 208 209 typedef ExtendedFullGraphBase Parent; 210 211 /// \brief Constructor 212 /// 214 213 FullGraph(int n) { construct(n); } 214 215 /// \brief Resize the graph 216 /// 217 void resize(int n) { 218 Parent::getNotifier(Edge()).clear(); 219 Parent::getNotifier(Node()).clear(); 220 construct(n); 221 Parent::getNotifier(Node()).build(); 222 Parent::getNotifier(Edge()).build(); 223 } 215 224 }; 216 225 … … 380 389 }; 381 390 382 typedef StaticMappableUGraphExtender< 383 IterableUGraphExtender< 384 AlterableUGraphExtender< 385 UGraphExtender<FullUGraphBase> > > > ExtendedFullUGraphBase; 391 typedef UGraphExtender<UGraphBaseExtender<FullUGraphBase> > 392 ExtendedFullUGraphBase; 386 393 387 394 /// \ingroup graphs … … 402 409 class FullUGraph : public ExtendedFullUGraphBase { 403 410 public: 411 412 typedef ExtendedFullUGraphBase Parent; 413 414 /// \brief Constructor 404 415 FullUGraph(int n) { construct(n); } 416 417 /// \brief Resize the graph 418 /// 419 void resize(int n) { 420 Parent::getNotifier(Edge()).clear(); 421 Parent::getNotifier(UEdge()).clear(); 422 Parent::getNotifier(Node()).clear(); 423 construct(n); 424 Parent::getNotifier(Node()).build(); 425 Parent::getNotifier(UEdge()).build(); 426 Parent::getNotifier(Edge()).build(); 427 } 405 428 }; 406 429 … … 578 601 579 602 580 typedef StaticMappableBpUGraphExtender< 581 IterableBpUGraphExtender< 582 AlterableBpUGraphExtender< 583 BpUGraphExtender < 584 FullBpUGraphBase> > > > 585 ExtendedFullBpUGraphBase; 603 typedef BpUGraphExtender< BpUGraphBaseExtender< 604 FullBpUGraphBase> > ExtendedFullBpUGraphBase; 586 605 587 606 … … 600 619 public ExtendedFullBpUGraphBase { 601 620 public: 621 602 622 typedef ExtendedFullBpUGraphBase Parent; 623 603 624 FullBpUGraph(int aNodeNum, int bNodeNum) { 604 625 Parent::construct(aNodeNum, bNodeNum); 605 626 } 627 /// \brief Resize the graph 628 /// 629 void resize(int n, int m) { 630 Parent::getNotifier(Edge()).clear(); 631 Parent::getNotifier(UEdge()).clear(); 632 Parent::getNotifier(Node()).clear(); 633 construct(n, m); 634 Parent::getNotifier(Node()).build(); 635 Parent::getNotifier(UEdge()).build(); 636 Parent::getNotifier(Edge()).build(); 637 } 606 638 }; 607 639
Note: See TracChangeset
for help on using the changeset viewer.