networkcommons.visual.NetworkXVisualizer.visualize
- NetworkXVisualizer.visualize(source_dict=None, target_dict=None, output_file='', prog='dot', render=False, highlight_nodes=None, style=None, max_nodes=75)
Visualizes the network and saves or shows the plot.
- Parameters:
output_file (str, optional) – Path to save the output image. Defaults to ‘network.png’.
render (bool, optional) – If True, displays the plot. If False, saves it to a file. Defaults to False.
highlight_nodes (list, optional) – List of nodes to highlight. Defaults to None.
style (dict, optional) – Style dictionary for visualization. Defaults to None.
max_nodes (int, optional) – Maximum number of nodes to visualize. Defaults to 75.