- - -
-
- -
-
- -
- -
- - - - -
- -
- - -
-
- - - - - -
- -
-

pyhgf.utils.trim_sequence#

-
-
-pyhgf.utils.trim_sequence(exclude_node_idxs: List, update_sequence: Tuple[Tuple[int, Callable], ...], edges: Tuple) Tuple[Tuple[int, Callable], ...][source]#
-

Remove steps from an update sequence that depends on a set of nodes.

-
-
Parameters:
-
-
exclude_node_idxs

A list of node indexes. The nodes can be input nodes or any other node in the -network.

-
-
update_sequence

The sequence of updates that will be applied to the node structure.

-
-
edges

The nodes structure.

-
-
-
-
Returns:
-
-
trimmed_update_sequence

The update sequence without the update steps for nodes depending on the root -list.

-
-
-
-
-
- -
- - -
- - - - - - - -
- - - -
- - -
-
- -
- -