Updated Phevor to handle edge types.