save the in and out edges as one object per vertex
awesome version, passed all nontransactional cases