Trying to find which lines are parallel

Hi,

I am bringing in a LIST of model lines and trying to extract lines which are parallel to one another. Here the red and blue lines are parallel and are overlapping on one another. Can anyone help me on how to build this logic. What will we happening in each step geometrically and which nodes there are. I am very new to this so a detailed reply will be very helpful. Thank you!

Please refrain from duplicating topics. Closing this one as the other already has replies in it.