does `concat` duplicate the target Array instance? please make sure you're not mutating `graph.nodes` here.