The following process is suggested for creating a graph.

Add the resource instances

Create the references

Add the resource contents