specless.io.edge_label_function
- specless.io.edge_label_function(u: str, v: str, data: Dict, selected_keys: List[str] | None = None, ignore_keys: List[str] = ['obj']) str [source]
Generate a label for an edge based on its data.
- Parameters:
u (str) – The source node of the edge.
v (str) – The target node of the edge.
data (Dict) – The data associated with the edge.
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 edge.
- Return type:
str