added support for zero edges given as input to item similarity