     /**
      Passes the handle to the updated notification delegates.
      - Parameter set: A Set of NSManagedObjects to pass.
+     - Parameter source: A GraphSource value.
      */
     private func delegateToUpdatedWatchers(_ set: Set<AnyHashable>, source: GraphSource) {
         let nodes = sortToArray(set)


@objc(GraphEntityDelegate)
public protocol GraphEntityDelegate: GraphDelegate {
    @objc
    optional func graph(graph: Graph, inserted entity: Entity, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, deleted entity: Entity, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, entity: Entity, added property: String, with value: Any, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, entity: Entity, updated property: String, with value: Any, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, entity: Entity, removed property: String, with value: Any, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, entity: Entity, added tag: String, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, entity: Entity, removed tag: String, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, entity: Entity, addedTo group: String, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, entity: Entity, removedFrom group: String, source: GraphSource)
}
    
@objc(GraphRelationshipDelegate)
public protocol GraphRelationshipDelegate: GraphDelegate {
    @objc
    optional func graph(graph: Graph, inserted relationship: Relationship, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, updated relationship: Relationship, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, deleted relationship: Relationship, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, relationship: Relationship, added property: String, with value: Any, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, relationship: Relationship, updated property: String, with value: Any, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, relationship: Relationship, removed property: String, with value: Any, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, relationship: Relationship, added tag: String, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, relationship: Relationship, removed tag: String, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, relationship: Relationship, addedTo group: String, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, relationship: Relationship, removedFrom group: String, source: GraphSource)
}

@objc(GraphActionDelegate)
public protocol GraphActionDelegate: GraphDelegate {
    @objc
    optional func graph(graph: Graph, inserted action: Action, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, deleted action: Action, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, action: Action, added property: String, with value: Any, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, action: Action, updated property: String, with value: Any, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, action: Action, removed property: String, with value: Any, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, action: Action, added tag: String, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, action: Action, removed tag: String, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, action: Action, addedTo group: String, source: GraphSource)
    
    @objc
    optional func graph(graph: Graph, action: Action, removedFrom group: String, source: GraphSource)
}

@objc(GraphCloudDelegate)
public protocol GraphCloudDelegate: GraphDelegate {
    @objc
    optional func graphWillPrepareCloudStorage(graph: Graph, transition: GraphCloudStorageTransition)
    
    @objc
    optional func graphDidPrepareCloudStorage(graph: Graph)
    
    @objc
    optional func graphWillUpdateFromCloudStorage(graph: Graph)
    
    @objc
    optional func graphDidUpdateFromCloudStorage(graph: Graph)
}

    /**
     Passes the handle to the inserted notification delegates.
     - Parameter set: A Set of NSManagedObjects to pass.
     - Parameter source: A GraphSource value.
     */
    private func delegateToInsertedWatchers(_ set: Set<AnyHashable>, source: GraphSource) {
        let nodes = sortToArray(set)
