optimize the graph, combine all tracks between switches.
optimize the graph, combine all tracks between switches.