Made resource graph unique, as resources should belong to the same graph