Deletion of pdf + update of 'update_edge_count' to accept int as input