Upadated Version with test added(/filter/tests/test_edge.py