Finished all primitive refactoring. TODO: add V2E,E2V/E for backward_bfs, refactoring simple_example