Isolate disconnected pipes

I am by no means an MEP specialist, but I would guess that getting the connector origin and compare it to pipes curves start or end points could be an option. If so, Bakery has a node called Get Connector.Origin.

Edit: See also: