seems to work with inserting nodes , while edge insertion is missing (potential  methods for this is in comments)