EDGE_ATTR_PRIORITY

EDGE_ATTR_PRIORITY#

iqm.applications.graph_utils.EDGE_ATTR_PRIORITY: tuple[str, ...] = ('bias', 'weight', 'coupling', 'interaction', 'J')#

Ordered names of edge attributes that may store edge weights.

When extracting edge weights from a graph, attributes are checked in this order and the first match is used. This allows the library to accept graphs originating from different conventions (e.g. “weight”, “coupling”, etc.).