Sort graphs by full path