Add additional condition for edge filtering

This if for a better logic for implementing the DBSCAN in spark.
Merge pull request #3 from luborliu/patch-1

Add additional condition for edge filtering