Changeset 2408:467ca6d16556 in lemon-0.x for lemon/bellman_ford.h
- Timestamp:
- 03/13/07 16:42:06 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3239
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bellman_ford.h
r2394 r2408 39 39 /// 40 40 /// It defines all computational operations and constants which are 41 /// used in the bellman ford algorithm. The default implementation41 /// used in the Bellman-Ford algorithm. The default implementation 42 42 /// is based on the numeric_limits class. If the numeric type does not 43 43 /// have infinity value then the maximum value is used as extremal … … 101 101 typedef typename _LengthMap::Value Value; 102 102 103 /// \brief Operation traits for bellman-ford algorithm.103 /// \brief Operation traits for Bellman-Ford algorithm. 104 104 /// 105 105 /// It defines the infinity type on the given Value type … … 411 411 /// \brief Adds a new source node. 412 412 /// 413 /// The optional second parameter is the initial distance of the node. 414 /// It just sets the distance of the node to the given value. 413 /// Adds a new source node. The optional second parameter is the 414 /// initial distance of the node. It just sets the distance of the 415 /// node to the given value. 415 416 void addSource(Node source, Value dst = OperationTraits::zero()) { 416 417 _dist->set(source, dst); … … 421 422 } 422 423 423 /// \brief Executes one round from the bellman ford algorithm.424 /// \brief Executes one round from the Bellman-Ford algorithm. 424 425 /// 425 426 /// If the algoritm calculated the distances in the previous round … … 464 465 } 465 466 466 /// \brief Executes one weak round from the bellman ford algorithm.467 /// \brief Executes one weak round from the Bellman-Ford algorithm. 467 468 /// 468 469 /// If the algorithm calculated the distances in the … … 518 519 /// \pre init() must be called and at least one node should be added 519 520 /// with addSource() before using this function. If there is 520 /// a negative cycle sin the graph it gives back false.521 /// a negative cycle in the graph it gives back false. 521 522 /// 522 523 /// This method runs the %BellmanFord algorithm from the root node(s) … … 608 609 ///@{ 609 610 610 /// \brief Lemon iterator for get aactive nodes.611 /// \brief Lemon iterator for get the active nodes. 611 612 /// 612 613 /// Lemon iterator for get the active nodes. This class provides a … … 785 786 typedef typename _LengthMap::Value Value; 786 787 787 /// \brief Operation traits for bellman-ford algorithm.788 /// \brief Operation traits for Bellman-Ford algorithm. 788 789 /// 789 790 /// It defines the infinity type on the given Value type
Note: See TracChangeset
for help on using the changeset viewer.