It looks like all the features are in the diagram correctly, it is just a problem of display. The manual answer to the display is to use the 'Main Line' algorithm, pick the start point and stop point and then apply it. To automatically do it, you would need to build an algo that somehow automatically knows how to determine what is the start and stop points and then apply the algo without the user manually doing it.