specless.io.node_label_function

specless.io.node_label_function(n: str, data: Dict, selected_keys: List[str] | None = None, ignore_keys: List[str] = ['obj']) str[source]

Generate a label for a node based on its data.

Parameters:
  • n (str) – The name of the node.

  • data (Dict) – The data associated with the node.

  • selected_keys (List[str], optional) – The keys in the data to include in the label. If None, all keys are included.

  • ignore_keys (List[str], optional) – The keys in the data to exclude from the label.

Returns:

The label for the node.

Return type:

str