Revert "Add additional condition for edge filtering"

Reverts aizook/SparkAI#3