edgegraph.builder.adjmatrix

edgegraph.builder.adjmatrix#

Build graphs from adjacency matrices.

Helper functions for working with adjacency matrices.

This module provides functions for working with adjacency matrices. These are two-dimensional lists (lists of lists) which define a graph’s structure, using a grid of boolean values to determine whether two vertices (represented by rows and columns) are reachable from each other. See the functions’ documentation for examples.

Functions

create_adj_matrix(uni, sort_key)

Create an adjacency matrix from a given universe.

load_adj_matrix(matrix, vertices[, linktype])

Load an adjacency matrix to create a graph structure.