Graphlets: add a function to do thresholding and subgraph generation quickly.