Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Path Similarity in a Directed Graph

I was wondering if anyone knows of a graph-theoretic algorithm that provides a metric for determining the pairwise similarity between paths through a directed graph? I imagine the simplest algorithms/metrics just counts the number of nodes common to both paths and does some sort of weighting in the case of comparing paths of different lengths.

Any pointers to references or implementations would be most appreciated.

like image 766
JoshAdel Avatar asked Oct 23 '25 18:10

JoshAdel


1 Answers

You could use the Levenshtein distance between the vertex sequences of the two paths.

like image 110
Falk Hüffner Avatar answered Oct 26 '25 12:10

Falk Hüffner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!