networkcommons.visual.get_comparison_color

networkcommons.visual.get_comparison_color(category, styles, element_type='nodes')

Get the color for nodes or edges based on the comparison category.

Parameters:
  • category (str) – The comparison category.

  • styles (dict) – The styles dictionary.

  • element_type (str) – The type of element (‘nodes’ or ‘edges’).

Returns:

The color for the element.

Return type:

str