A general framework for vertex orderings with applications to circuit clustering | Synapse