update to internal_nodes, edges, and triangles