Smallest-last ordering and clustering and graph coloring algorithms | Synapse