[graph-tool] Dice or Jaccard similarity of vertices