Assume that we have a set of nodes and multiple graphs with different edges. I need to find the shortest path between two nodes. as an example given, there are three graphs as graph 01, graph 01 & graph 03 as shown in the figure. I need to find the shortest path between node 1 & node 7. 
since there is no path in one graph, I have used multiple graphs. therefore the result should be like shown below.

though the below-shown path is used less number of edges compared above graph, since conversions between graphs are higher, the above path should be considered as the shortest path.
here, the most important term for a path to be shortest is the number of conversions from graph to graph. how can I solve this problem?
