Impelemting edges functionality