Added: edge extraction