finesse.tracing.forest.TraceForest.contains

TraceForest.contains(self, o) bool

Whether the forest contains the specified object, determined recursively for each tree within the forest.

Parameters
o[TraceTree | OpticalNode | Space | Connector]

The object to search for in the forest.

Returns
flagbool

True if o is in the forest, False otherwise.