visualize

This module consists of a single function, which draws a graph to visualize a configuration.

pype_schema.visualize.draw_graph(network, pyvis=False, output_file=None)[source]

Draw all of the nodes and connections in the given network

Parameters:
  • network (Network) – Network object to draw

  • pyvis (bool) – Whether to draw the graph with PyVis or Networkx. False (networkx) by default

  • output_file (str) – Path to the desired output. Default is None, meaning the file will be saved as networkd.id + extension