Skip to content

num::linear::to_sparse_adjacency

Defined in header <linear/graph/laplacian.hpp>

template <typename Weight = real, typename Index = idx>
spmat to_sparse_adjacency(const graph<Weight, Index> &g);

The weighted adjacency matrix of a graph, in CSR form.