A graph theoretic approach to the grouping of ordering data | Synapse