networkcommons.visual.set_style_attributes

networkcommons.visual.set_style_attributes(item, base_style, condition_style=None)

Set attributes for a graph item (node or edge) based on the given styles.

Parameters:
  • item (node or edge) – The item to set attributes for.

  • base_style (dict) – The base style dictionary with default attribute settings.

  • condition_style (dict, optional) – A dictionary of attribute settings for specific conditions. Defaults to None.