How to get physical connector(only) of a connector?

I want to retrieve physical connectors (only) of a connector using revit API. connector.Allrefs method is retrieving both physical and logical connectors.I want only physical connectors(Means I dont want piping system in the list which is a logical connection).

Got the solution.
we can filter logical and physical connection using Connector type property.