Say I have two simple graphs, $A$ and $B$
In $A$, I know:
- one node has 3 nodes at distance of 1, 4 nodes at distance 2, etc.
- one node has 4 nodes at distance of 1, 1 nodes at distance 2, etc.
- etc.
In $B$, I know:
- one node has 3 nodes at distance of 1, 4 nodes at distance 2, etc.
- one node has 4 nodes at distance of 1, 1 nodes at distance 2, etc.
- etc.
Can I derive that graph $A$ and $B$ are isomorphic to each other? Or is there a counter-example where two graphs look the same from this distance point of view, but are not isomorphic?
It is a necessary condition, so if these simple graphs are isomorphic, they will share these distances. I am wondering if this is a sufficient condition as well.