display command ids grouped by connected graphs