Revert "fix getting incident vertex from an edge bug"

This reverts commit ba87602a1472d52abb0421a6a7a19de84576920b.
fixed bug in finding an incident vertex of an edge