complete implementation of edge filtering. some source toggles to stigler.py for testing diagonal relations with gsn