How to get two adjacent parallel lines then group, finaly output a new list?

How to get two adjacent parallel lines then group, finaly output a new list? Thank you first!

Hey,
take center point of all the line, and draw the line of length 100mm (if max distance between adjacent line is 100 mm) starting from center point of the line and find clash lines, may be this way you can group the adjacent parallel line together and get final output in a new list.

I am sharing the basic logic for solving this problem. If you have better way to solve this issue, please share you logic, that will improve my thinking skills. Thank you

Regards
Sagar Jain

Thank you very much for your advice.
I will try it first.