First time here? Check out the FAQ!
answered 2022-10-16 19:50:11 +0100
By default .is_subgraph() takes into account vertex labels while searching for subgraph. Since labels do not matter in your case, you need to add parameter up_to_isomorphism=True when calling .is_subgraph().
.is_subgraph()
up_to_isomorphism=True