Vertex similarity measure