Common exception class
Potentially allow loops in graphs
Handle loops in subgraph isomorphism