networkcommons.visual.NetworkXVisualizer.visualize_network

NetworkXVisualizer.visualize_network(source_dict, target_dict, prog='dot', network_type='default', custom_style=None, max_nodes=75)

Main function for network visualization based on network type.

Parameters:
  • network (nx.Graph) – The network to visualize.

  • source_dict (dict) – Sources and perturbation signs.

  • target_dict (dict) – Targets and measurement signs.

  • prog (str, optional) – Layout program to use. Defaults to ‘dot’.

  • network_type (str, optional) – Type of visualization. Defaults to “default”.

  • custom_style (dict, optional) – Custom style dictionary to apply.

  • max_nodes (int, optional) – Maximum number of nodes to visualize. Defaults to 75.

Returns:

The visualized network graph.

Return type:

A (pygraphviz.AGraph)