finesse.tracing.tree.TraceTree.contains

TraceTree.contains(self, o) bool

Whether the tree contains the specified object, determined recursively.

Parameters
o[TraceTree | OpticalNode | Space | Connector]

The object to search for in the trace tree.

Returns
flagbool

True if o is in the tree, False otherwise.