Changed avoids_forbidden_subgraph to is_forbidden_subgraph_free