Graph.set_node_enabled#

Graph.set_node_enabled(node_index: int, is_enable: bool) bool[source]#

Sets the node at the given nodeIndex (int) to isEnabled (bool).

Parameters:
  • node_index (int) – 1 <= nodeIndex <= self.GetNumNodes().

  • is_enable (bool) – node is enabled or not

Returns:

Return True if the operation is successful.

Return type:

bool