InteractionMixin.trace_connections
- InteractionMixin.trace_connections(start, category=None, max_depth=None)
Trace elements reachable from
startthrough interaction edges.Performs a breadth-first walk over the interaction graph starting at
start, following edges whose relationships matchcategory(or, ifcategorynames a group inRELATIONSHIP_GROUPS, any relationship in that group). Useful for tracing connectivity networks such as MEP flow systems or chains of structurally connected members.- Parameters:
- start
GenericElement The element to start the traversal from.
- categorystr, optional
A relationship category (e.g.
"connection","structural") or a group name ("topology","structural","mep"). IfNone, follows edges of any category.- max_depthint, optional
Maximum number of edges to traverse from
start. IfNone, the whole connected component is returned.
- start
- Returns:
- list[
GenericElement] The reachable elements, excluding
startitself, in breadth-first order.
- list[