# Graph library in Fortran?

**URL:** <https://fortran-lang.discourse.group/t/graph-library-in-fortran/3972>\
**Category:** Uncategorized\
**Created:** [July 11, 2022, 5:01am UTC](https://fortran-lang.discourse.group/t/graph-library-in-fortran/3972 "2022-07-11T05:01:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![septc](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/septc/32/77_2.png) [@septc](https://fortran-lang.discourse.group/u/septc)\
**Post date:** [July 11, 2022, 5:01am UTC](https://fortran-lang.discourse.group/t/graph-library-in-fortran/3972/1 "2022-07-11T05:01:06Z")

</div>

Hello,

I am trying to search for graph libraries in Fortran (hopefully in modern Fortran). Here, “graph” means networks (= nodes connected by edges), not visualization (like “plot a graph”). I have found the following libraries up to now:

- GRAFPACK  
[GRAFPACK - Graph Computations](https://people.math.sc.edu/Burkardt/f_src/grafpack/grafpack.html)

- TREEPACK  
[TREEPACK - Computations using Tree Graphs](https://people.math.sc.edu/Burkardt/f_src/treepack/treepack.html)

- DAGLIB  
[GitHub - jacobwilliams/daglib: Directed Acyclic Graphs With Modern Fortran](https://github.com/jacobwilliams/daglib)

and I am wondering if there are also other similar libraries that cover typical algorithms / functionality? (For my use case, I have written my own graph routine recently, but wondering if it may be more convenient to use existing libraries.)

Thanks very much in advance!

---

<div class="post-metadata">

**Author:** ![everythingfunctional](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/everythingfunctional/32/176_2.png) [@everythingfunctional](https://fortran-lang.discourse.group/u/everythingfunctional)\
**Post date:** [July 11, 2022, 2:57pm UTC](https://fortran-lang.discourse.group/t/graph-library-in-fortran/3972/2 "2022-07-11T14:57:07Z")

</div>

@rouson and I forked DAGLIB [here](https://github.com/sourceryinstitute/dag) to use in [FEATS](https://github.com/sourceryinstitute/feats), but the only algorithms we needed at the time were “sort”, “points to”, and “pointed at by”. We’d be happy to have contributions.
