finesse.graph.operator_graph.OperatorGraph.has_self_loop

OperatorGraph.has_self_loop(self, node)

Check if a node has a self-loop.

This method checks if the specified node has a self-loop in the graph.

Parameters
nodeint

The index of the node to check.

Returns
int

1 if the node has a self-loop, 0 otherwise.