networkcommons.visual.YFilesVisualizer

class networkcommons.visual.YFilesVisualizer(network)

A class for visualizing network graphs interactively using the yFiles HTML widget.

network

The network graph to visualize.

Type:

nx.Graph

styles

A dictionary of styles for visualizing nodes and edges.

Type:

dict

__init__(network)

Initializes the visualizer with a network graph.

visualize(graph_layout='Organic', directed=True)

Visualizes the network with a specified layout and direction.

vis_comparison(int_comparison, node_comparison, graph_layout, directed)

Visualizes network comparison data with specific layout and direction.

custom_edge_color_mapping(edge)

Custom function to map edge colors.

custom_node_color_mapping(node)

Custom function to map node colors.

custom_factor_mapping(node)

Custom function to determine node scale factors.

custom_label_styles_mapping(node)

Custom function to map node label styles.

Methods

custom_edge_color_mapping(edge)

Custom function to map edge colors based on edge properties.

custom_factor_mapping(node)

Custom function to determine the scale factor for nodes.

custom_label_styles_mapping(node)

Custom function to map node label styles based on node properties.

custom_node_color_mapping(node)

Custom function to map node colors based on node properties.

vis_comparison(int_comparison, ...)

Visualizes network comparison data with specific layout and direction.

visualize([graph_layout, directed])

Visualizes the network graph using the yFiles widget with the specified layout and direction.

Methods

custom_edge_color_mapping(edge)

Custom function to map edge colors based on edge properties.

custom_factor_mapping(node)

Custom function to determine the scale factor for nodes.

custom_label_styles_mapping(node)

Custom function to map node label styles based on node properties.

custom_node_color_mapping(node)

Custom function to map node colors based on node properties.

vis_comparison(int_comparison, ...)

Visualizes network comparison data with specific layout and direction.

visualize([graph_layout, directed])

Visualizes the network graph using the yFiles widget with the specified layout and direction.