This primitive support both dense and sparse mode. In sparse mode, the input should be a undirected graph in compressed sparse row (CSR) format with its vertex and edge numbers. In desnse mode, the input should be a set of vertex list with known size. The result will return a vertex list with each vertex corresponding similarity value. The config contains several boolean value to control the graphType (0:Sparse Mode, 1:Dense Mode), similarityType (0:Jaccard Similarity, 1:Cosine Similarity), dataType (0:uint, 1:float).