A little source code to know how many nodes have in common 2 nodes from a Graph