utils

utils#

Simple utilities useful throughout the codebase.

Functions

graph_from_func

Build a graph with a single function node.

map_vals

Apply function f to map all the values in the input mapping.

rename_ports_graph

Generate an identity graph with inputs -> outputs mapped by the provided dictionary.