networkx
networkx copied to clipboard
`rooted_product()` should raise `NodeNotFound` when `root` is not in `H`
rooted_product() currently raises a NetworkXError when root is not in H, but I believe NodeNotFound makes more sense (ref.).
I suggest waiting with this until #7484 gets merged/closed, otherwise it will introduce conflicts.