Overrode add_vertex method in PeptideGraph class.