A colored graph approach to perfect phylogeny with persistent characters