For example, there is a graph, which can be represented as an adjacency matrix as
G = {{ 0, 1, 0 }, { 1, 0, 1 }, { 1, 0, 0 }}
Thus, there are four directed edges:
node_1 to node_2, node_2 to node_3, node_2 to node_1 and node_3 to node_1.
What I want is to calculate the similarity between subgraph (path) {node_2 to node_3} and subgraph (path) {node_2 to node_3 to node_1}.
What I can found the most is the subgraph isomorphism problem, which trying to determine if a subgraph matches (is a part of) a larger graph. This is not my desire.
My major task is to determine how similar two subgraphs (path) are, which both exist within a graph that I known.
Any existing approaches you could recommend? Papers? Example code?
Thanks in advance.