Dot product used only on common links. meanDistance is used now rather than dotProduct. Similarity with nodes without common links is marked with -1.