Implement functions for manipulating provenance resource graphs