Skip to content

Commit d23e0b1

Browse files
authored
Merge pull request #764 from JDPowell648/main
Added clarification to the get_shortest_path() documentation #749
2 parents ecfced6 + b556e98 commit d23e0b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/_igraph/graphobject.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15122,6 +15122,8 @@ struct PyMethodDef igraphmodule_Graph_methods[] = {
1512215122
METH_VARARGS | METH_KEYWORDS,
1512315123
"get_shortest_path(v, to, weights=None, mode=\"out\", output=\"vpath\", algorithm=\"auto\")\n--\n\n"
1512415124
"Calculates the shortest path from a source vertex to a target vertex in a graph.\n\n"
15125+
"This function only returns a single shortest path. Consider using L{get_shortest_paths()}\n"
15126+
"to find all shortest paths between a source and one or more target vertices.\n\n"
1512515127
"@param v: the source vertex of the path\n"
1512615128
"@param to: the target vertex of the path\n"
1512715129
"@param weights: edge weights in a list or the name of an edge attribute\n"
@@ -15139,7 +15141,8 @@ struct PyMethodDef igraphmodule_Graph_methods[] = {
1513915141
" algorithm automatically based on whether the graph has negative weights\n"
1514015142
" or not. C{\"dijkstra\"} uses Dijkstra's algorithm. C{\"bellman_ford\"}\n"
1514115143
" uses the Bellman-Ford algorithm. Ignored for unweighted graphs.\n"
15142-
"@return: see the documentation of the C{output} parameter.\n"},
15144+
"@return: see the documentation of the C{output} parameter.\n"
15145+
"@see: L{get_shortest_paths()}\n"},
1514315146

1514415147
/* interface to igraph_get_shortest_paths */
1514515148
{"get_shortest_paths", (PyCFunction) igraphmodule_Graph_get_shortest_paths,

0 commit comments

Comments
 (0)