So your neighbour's drain runs across your property to join up with the main sewer line ?
Then your drain line runs into this branch line that comes from your neighbour's property, then this sewer line (servicing your neighbour's property then your property) then connects into the main sewer...