Similarity (proximity) metric from graph traversal distance