Welcome to pyflagser’s API reference!

pyflagser: Flag Complexes I/O and Persistence Homology

load_unweighted_flag(fname[, fmt, dtype])

Load a .flag file and return the adjacency matrix of the directed/undirected unweighted graph it describes.

load_weighted_flag(fname[, fmt, dtype, …])

Load a .flag file and return the adjacency matrix of the directed/undirected weighted graph it describes.

save_unweighted_flag(fname, adjacency_matrix)

Save the adjacency matrix of a directed/undirected unweighted graph into a .flag file.

save_weighted_flag(fname, adjacency_matrix)

Save the adjacency matrix of a directed/undirected weighted graph into a .flag file.

flagser_unweighted(adjacency_matrix[, …])

Compute homology of a directed/undirected flag complex.

flagser_weighted(adjacency_matrix[, …])

Compute persistent homology of a directed/undirected filtered flag complex.

flagser_count_unweighted(adjacency_matrix[, …])

Compute the cell count per dimension of a directed/undirected unweighted flag complex.

flagser_count_weighted(adjacency_matrix[, …])

Compute the cell count per dimension of a directed/undirected filtered flag complex.