# Is \`get\_shortest\_path\` deprecated?

**URL:** <https://igraph.discourse.group/t/is-get-shortest-path-deprecated/1629>\
**Category:** Usage\
**Tags:** Python\
**Created:** [8 August 2023 17:47 UTC](https://igraph.discourse.group/t/is-get-shortest-path-deprecated/1629 "2023-08-08T17:47:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazycurler](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/lazycurler/32/978_2.png) [@lazycurler](https://igraph.discourse.group/u/lazycurler)\
**Post date:** [8 August 2023 17:47 UTC](https://igraph.discourse.group/t/is-get-shortest-path-deprecated/1629/1 "2023-08-08T17:47:23Z")

</div>

Hello, I’m using the Python igraph library `0.10.4` and would like to the single shortest path between two vertices. I first tried with `get_shortest_path` which did not seem to work but doing `get_shortest_k_paths(...)[0]` seemed to work fine as a replacement. Is `get_shortest_path` deprecated? It’s still mentioned in the online documentation.

[https://python.igraph.org/en/stable/api/igraph.GraphBase.html#get\_shortest\_path](https://python.igraph.org/en/stable/api/igraph.GraphBase.html#get_shortest_path)

 ![missing_function_get_shortest_path](https://global.discourse-cdn.com/free1/uploads/igraph/original/1X/9481133f8d67a725b591d6697cd5d94a33c83520.png)

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/szhorvat/32/3_2.png) [@szhorvat](https://igraph.discourse.group/u/szhorvat)\
**Post date:** [8 August 2023 23:31 UTC](https://igraph.discourse.group/t/is-get-shortest-path-deprecated/1629/2 "2023-08-08T23:31:32Z")

</div>

Update to the latest version, 0.10.6, whose docs you are referencing.

---

<div class="post-metadata">

**Author:** ![lazycurler](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/lazycurler/32/978_2.png) [@lazycurler](https://igraph.discourse.group/u/lazycurler)\
**Post date:** [9 August 2023 02:21 UTC](https://igraph.discourse.group/t/is-get-shortest-path-deprecated/1629/3 "2023-08-09T02:21:01Z")

</div>

Thanks! I didn’t realize the documentation was `0.10.6` and when I had tried to update igraph with pip I didn’t see any change. I forced an install of that specific version and we’re good. 🙂
