fix a bug in construct graph, display routing path