I have a road network file (openstreetmap exported file) that has various types of edges (freeway, highway, primary, residential, service, ...). Some of these edges have multiple lanes (parallel), so that each one of these lanes considered a separate edge in road network, for example: 
How can I merge these lanes in one lane and construct the road network algorithmic (I know in some applications, we can select ways and merge them with right click, but I can't do this for 100000+ edges in large cities)?