concepts.benchmark.algorithm_env.graph#

Functions

random_generate_graph(n, p[, directed])

Randomly generate a graph by sampling the existence of each edge.

random_generate_graph_dnc(n[, p, directed])

Random graph generation method as in DNC, the Differentiable Neural Computer paper.

random_generate_special_graph(n, graph_type)

Randomly generate a special type graph.

Classes

Graph

Store a graph using adjacency matrix.