Changeset 1124:12623f7ecb37 in lemon-0.x for src/work
- Timestamp:
- 02/05/05 14:40:01 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1523
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/alpar/dijkstra.h
r1123 r1124 49 49 ///The type of the map that stores the edge lengths. 50 50 51 ///The type of the map that stores the edge lengths. 51 52 ///It must meet the \ref concept::ReadMap "ReadMap" concept. 52 ///53 53 typedef LM LengthMap; 54 54 //The type of the length of the edges. … … 68 68 ///edges of the shortest paths. 69 69 /// 70 ///The type of the map that stores the last 71 ///edges of the shortest paths. 70 72 ///It must meet the \ref concept::WriteMap "WriteMap" concept. 71 73 /// … … 83 85 ///nodes of the shortest paths. 84 86 /// 87 ///The type of the map that stores the last but one 88 ///nodes of the shortest paths. 85 89 ///It must meet the \ref concept::WriteMap "WriteMap" concept. 86 90 /// … … 97 101 ///The type of the map that stores whether a nodes is reached. 98 102 103 ///The type of the map that stores whether a nodes is reached. 99 104 ///It must meet the \ref concept::WriteMap "WriteMap" concept. 100 105 ///By default it is a NullMap. … … 112 117 ///The type of the map that stores the dists of the nodes. 113 118 119 ///The type of the map that stores the dists of the nodes. 114 120 ///It must meet the \ref concept::WriteMap "WriteMap" concept. 115 121 /// … … 510 516 /// Default traits used by \ref DijkstraWizard 511 517 512 /// To make it easier to use Dijkstra algorithm we created a wizard class.513 /// This \ref DijkstraWizard class also needs default traits.518 /// To make it easier to use Dijkstra algorithm we have created a wizard class. 519 /// This \ref DijkstraWizard class needs default traits, as well as the \ref Dijkstra class. 514 520 /// The \ref DijkstraWizardBase is a class to be the default traits of the 515 521 /// \ref DijkstraWizard class. … … 565 571 /// Simplicity means that the way to change the types defined 566 572 /// in the traits class is based on functions that returns the new class 567 /// and not on templatable built-in classes. When using the plain \ Dijkstra568 /// the new class with the modified type comes from the original by using the ::569 /// operator. In th is caseonly a function have to be called and it will573 /// and not on templatable built-in classes. When using the plain \ref Dijkstra 574 /// the new class with the modified type comes from the original class by using the :: 575 /// operator. In the case of \ref DijkstraWizard only a function have to be called and it will 570 576 /// return the needed class. 571 577 /// … … 609 615 610 616 /// Constructor that requires parameters. 617 618 /// Constructor that requires parameters. 611 619 /// These parameters will be the default values for the traits class. 612 620 DijkstraWizard(const Graph &g,const LengthMap &l, Node s=INVALID) : … … 632 640 } 633 641 634 ///Runs Dijkstra algorithm from agiven node.635 636 ///Runs Dijkstra algorithm from agiven node.642 ///Runs Dijkstra algorithm from the given node. 643 644 ///Runs Dijkstra algorithm from the given node. 637 645 ///\param s is the given source. 638 646 void run(Node s) … … 652 660 653 661 /// \ref named-templ-param "Named parameter" function for setting PredMap type 662 /// 654 663 template<class T> 655 664 DijkstraWizard<DefPredMapBase<T> > predMap(const T &t) … … 670 679 671 680 /// \ref named-templ-param "Named parameter" function for setting PredNodeMap type 681 /// 672 682 template<class T> 673 683 DijkstraWizard<DefPredNodeMapBase<T> > predNodeMap(const T &t) … … 687 697 688 698 /// \ref named-templ-param "Named parameter" function for setting DistMap type 699 /// 689 700 template<class T> 690 701 DijkstraWizard<DefDistMapBase<T> > distMap(const T &t)
Note: See TracChangeset
for help on using the changeset viewer.