fix reorderGraph.m