specless.io.add_labels
- specless.io.add_labels(graph: ~networkx.classes.multidigraph.MultiDiGraph, node_label_func: ~typing.Callable = <function node_label_function>, edge_label_func: ~typing.Callable = <function edge_label_function>) None [source]
Add labels to the nodes and edges of a graph.
- Parameters:
graph (nx.MultiDiGraph) – The graph to add labels to.
node_label_func (Callable, optional) – The function to generate node labels. If None, no node labels are added.
edge_label_func (Callable, optional) – The function to generate edge labels. If None, no edge labels are added.