rockpool.graph.utils

Utilities for generating and manipulating computational graphs

See also

See Computational graphs in Rockpool for an introduction to computational graphs.

Functions

bag_graph(graph[, nodes_bag, modules_bag])

Convert a graph into a collection of connection nodes and modules, by traversal

connect_modules(source, dest[, ...])

Connect two GraphModule s together

find_modules_of_subclass(graph, cls)

Search a graph for all GraphModule s of a specific class or any subclass

find_recurrent_modules(graph)

Search for graph modules that are connected in a one-module loop

replace_module(target_module, replacement_module)

Replace a graph module with a different module