Merge line string graph