Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit95f879a

Browse files
committed
Update bellman-ford's jsdocs
1 parent9280db2 commit95f879a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/graphs/shortest-path/bellman-ford.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
*@param {Array} edges Edges of the graph.
4848
*@param {Number} source Start vertex.
4949
*@returns {Object} Object with two arrays (parents and distances)
50-
* with shortest-path information.
50+
* with shortest-path information or undefined if the graph
51+
* has a negative cycle.
5152
*/
5253
exports.bellmanFord=function(vertexes,edges,source){
5354
vardistances={};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp