Resource Graphs