lemon/bellman_ford.h
changeset 1088 4000b7ef4e01
parent 1074 97d978243703
child 1092 dceba191c00d
equal deleted inserted replaced
12:1d4ee5b096f7 13:86e9b41280dc
   147   /// \brief %BellmanFord algorithm class.
   147   /// \brief %BellmanFord algorithm class.
   148   ///
   148   ///
   149   /// \ingroup shortest_path
   149   /// \ingroup shortest_path
   150   /// This class provides an efficient implementation of the Bellman-Ford
   150   /// This class provides an efficient implementation of the Bellman-Ford
   151   /// algorithm. The maximum time complexity of the algorithm is
   151   /// algorithm. The maximum time complexity of the algorithm is
   152   /// <tt>O(ne)</tt>.
   152   /// <tt>O(nm)</tt>.
   153   ///
   153   ///
   154   /// The Bellman-Ford algorithm solves the single-source shortest path
   154   /// The Bellman-Ford algorithm solves the single-source shortest path
   155   /// problem when the arcs can have negative lengths, but the digraph
   155   /// problem when the arcs can have negative lengths, but the digraph
   156   /// should not contain directed cycles with negative total length.
   156   /// should not contain directed cycles with negative total length.
   157   /// If all arc costs are non-negative, consider to use the Dijkstra
   157   /// If all arc costs are non-negative, consider to use the Dijkstra