Template Function MatrixTools::matrixToGraph

Function Documentation

template<class Matrix>
NetworKit::Graph MatrixTools::matrixToGraph(const Matrix &matrix)

Interprets the matrix as adjacency matrix of a graph. If matrix is non-symmetric, the graph will be directed.

Parameters:

matrix

Returns:

The graph having an adjacency matrix equal to matrix.