finesse.graph.operator_graph.OperatorGraph.self_loop_edges

OperatorGraph.self_loop_edges

Get the edges in the graph that are self-loops.

This property returns a tuple of tuples, where each inner tuple represents an edge that is a self-loop. Each inner tuple contains two identical elements, which are the index of the node that has a self-loop.

Returns
tuple of tuple of int

The edges in the graph that are self-loops. Each edge is represented as a tuple of two identical integers, which are the index of the node that has a self-loop.