Update with graph structure.