edits for flake8
attempt to get primal/dual match in noncommgraph
more noncommgraph stuff