Remove bugs related to reflexive nodes, add lazy graph insert