Removed PD -- replaced witht he more generalisable extractEdges.