graphstruc

graphstruc is a Fortran library providing efficient implementations of graph data structures and algorithms.

The library offers both dense and sparse graph representations with support for:

  • Directed and undirected graphs

  • Weighted edges

  • Vertex and edge features

  • Self-loops

  • Compressed Sparse Row (CSR) format for efficient sparse storage

Quick Example

use graphstruc, only: graph_type
type(graph_type) :: graph

call graph%add_vertex(feature=[1.0, 2.0])
call graph%add_edge(index=[1, 2], weight=1.5)
call graph%convert_to_sparse()

Indices