Added print edges functionality