         return result;
     }
     
-    func deleteRelationship(inout aRelationship: Relationship) {
+    func delete(inout aRelationship: Relationship) {
+        
         relationshipStore.delete(aRelationship)
         
-        aRelationship.context = nil;
+        aRelationship.context = nil
+        aRelationship.uid = 0
     }
 
     // MARK:  CRUD Property
-    
-    
+
     // created and UID without the data is written in the store
     
     func registerProperty(inout value : Property) {

        return result;
    }
    
    func update(aProperty: Property) {
        propertyStore.updateValue(aProperty)
    }

    func delete(inout aProperty: Property) {

//let cStringStoreFileName       = "stringstore.db"

public protocol Context {
    
    weak var context : GraphContext! { get set }
    
    var dirty: Bool {get set}
}

public class GraphContext {
