optimize draw_nodes by looping only through graphed_set