causally.graph.random_graph.CustomGraph

class causally.graph.random_graph.CustomGraph(adjacency: array)

Generator of user-specified, deterministic, graphs

Parameters:

adjacency (np.array) – Adjacency matrix representation of the output DAG. The presence of a directed edge from node i to node j is denoted by A[i, j] = 1. Absence of the edge is denote by A[i, j] = 0.

Methods

get_random_graph()

Return the adjacency provided as input to the constructor method.