viz module

Full Documentation for hippynn.graphs.viz module. Click here for a summary page.

Functions for visualizing nodes and their links with graphviz.

visualize_connected_nodes(node_iterable, compactify=True)[source]

Make a dot graph for a all nodes connected to a group of nodes.

Parameters:
  • node_iterable – An iterable (tuple, list, etc) of nodes.

  • compactify – see visualize_node_set()

Returns:

graphviz.DiGraph

visualize_graph_module(graph, compactify=True)[source]

Make a dot graph for a GraphModule.

Parameters:
Returns:

graphviz.Digraph

visualize_node_set(node_set, compactify, preserve=None)[source]

Make a dot graph for a precise set of nodes.

Parameters:
  • node_set – The set of nodes to visualize.

  • compactify – If True, do not show the individual outputs of a MultiNode. If True, show all nodes.

  • preserve

Returns:

graphviz.Digraphs