insert graph nodes