Example of calculating Jaccard similarity of edges of a directed graph