How do you ensure that the lifetime of the graph is long enough?