Model logical groups as a graph.