# igraph\_distances\_dijkstra

**URL:** <https://igraph.discourse.group/t/igraph-distances-dijkstra/1770>\
**Category:** Usage\
**Tags:** C\
**Created:** [1 March 2024 09:30 UTC](https://igraph.discourse.group/t/igraph-distances-dijkstra/1770 "2024-03-01T09:30:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyril](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@cyril](https://igraph.discourse.group/u/cyril)\
**Post date:** [1 March 2024 09:30 UTC](https://igraph.discourse.group/t/igraph-distances-dijkstra/1770/1 "2024-03-01T09:30:42Z")

</div>

Hi,  
Is there a good way to call igraph C/C++ functions (e.g., igraph\_distances\_dijkstra) directly from C/C++ in our own package code? We have an application where we would like to calculate the shortest paths using the dijkstra algorithm and where efficiency is critical with potentially thousands of calls. So we it would be key if we could access igraph directly from compiled code.  
Thanks,  
Cyril Milleret

---

<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:** [1 March 2024 09:46 UTC](https://igraph.discourse.group/t/igraph-distances-dijkstra/1770/2 "2024-03-01T09:46:06Z")

</div>

It is unclear to me what you mean. Of course you can use the igraph C library from C. The documentation is here: [igraph library](https://igraph.org/c/#docs)

EDIT: The way you asked the question makes me suspect that you are actually using one of the high-level interfaces. If so, please explain in detail which one you are using and what exactly you are trying to do.

---

<div class="post-metadata">

**Author:** ![cyril](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@cyril](https://igraph.discourse.group/u/cyril)\
**Post date:** [4 March 2024 09:26 UTC](https://igraph.discourse.group/t/igraph-distances-dijkstra/1770/3 "2024-03-04T09:26:13Z")

</div>

Thank you for your quick reply. I need some time to come up with a detailed answer.
