Diagram.edges_attributes
-
Diagram.edges_attributes(names=None, values=None, keys=None) Get or set multiple attributes of multiple edges.
- Parameters
names (list of str, optional) – The names of the attribute. Default is
None.values (list of obj, optional) – The values of the attributes. Default is
None.keys (list of edges, optional) – A list of edge identifiers.
- Returns
dict, list or None – If the parameter
namesisNone, a list containing per edge an attribute dict with all attributes (default + custom) of the edge. If the parameternamesisNone, a list containing per edge a list of attribute values corresponding to the requested names.Noneif the function is used as a “setter”.- Raises
KeyError – If any of the edges does not exist.