Assume that the given two multi-graphs are isomorphic.
How can one find a bijection between them?
I know it is hard to find isomorphism graph, since it is a NP problem.
But what about if they are already isomorphic graphs?
Many resources from the internet to solve the isomorphism problem recommend finding shortest path first and canonical form later. After my implementation for testing, it seems unnecessary and inefficient to prove the graphs are isomorphic. But I cannot find any other solutions to detach bijection and isomorphism without these function.
Note:
- reference: http://www.dharwadker.org/tevet/isomorphism/
- multi-graph allows self-loop and multi-edge.