extracting nodoes and edges out