opto.trace.nodes.Graph.roots

Contents

opto.trace.nodes.Graph.roots#

property Graph.roots#

Get all root nodes in the graph.

Returns:

A list of all root nodes in the graph. A root node is identified by its is_root attribute.

Return type:

list