Prevent creation of nodes outside graph container