networkcommons.visual.merge_styles

networkcommons.visual.merge_styles(default_style, custom_style, path='')

Merge custom styles with default styles to ensure all necessary fields are present.

Parameters:
  • default_style (dict) – The default style dictionary.

  • custom_style (dict) – The custom style dictionary.

  • path (str) – The path in the dictionary hierarchy for logging purposes.

Returns:

The merged style dictionary.

Return type:

dict