networkcommons.visual.YFilesVisualizer.custom_edge_color_mapping

static YFilesVisualizer.custom_edge_color_mapping(edge)

Custom function to map edge colors based on edge properties.

Parameters:

edge (dict) – Dictionary containing edge properties.

Returns:

Color for the edge.

Return type:

str