clean up filtered graphs slightly
ensure every circuit graph has a ground node, and suppress out edges from it