Subgraphing by class 'rank.'