Skip to content

Commit 035528e

Browse files
KalyanKalyan
Kalyan
authored and
Kalyan
committed
added reference for Yen algorithm
1 parent aaf6525 commit 035528e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rustworkx-core/src/shortest_path/simple_shortest_paths.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1010
// License for the specific language governing permissions and limitations
1111
// under the License.
12-
//
12+
//
1313
// This Library is for finding out the shortest paths in increasing cost order.
1414

1515
use crate::petgraph::algo::Measure;
@@ -144,6 +144,8 @@ where
144144
}
145145

146146
/// Implementation of Yen's Algorithm to find k shortest paths.
147+
/// More on Yen's algorithm - https://people.csail.mit.edu/minilek/yen_kth_shortest.pdf
148+
147149
pub fn get_smallest_k_paths_yen<N, K, T>(
148150
graph: &mut Graph<N, K, T>,
149151
start: NodeIndex,

0 commit comments

Comments
 (0)