Fixed graph dup to preserve vertices-edges link information
Change variable from keep_if because keep_if is a modifier, and fix specs. Part of #7