     
     //func inNodeEnumerator() -> NSEnumerator
     
+
+    // MARK: ??
+    
+    func update() {
+        self.context.updateNode(self)
+    }
+    
+    // MARK: Property
+    var propertyID : UID? {
+        get {
+            return data.nextPropertyID
+        }
+        set(newID) {
+            if newID != data.nextPropertyID {
+                if (newID != nil) {
+                    data.nextPropertyID = newID!
+                } else {
+                    data.nextPropertyID = 0
+                }
+                dirty = true
+            }
+        }
+    }
 }

    */
    
    
    // IN
    var inRelationshipCount: Int? {
    get {
        return 0;

}

class Node : GraphElement, Coding {
    
    // MARK: Coding

    var data : NODE = NODE()
    
    // is required in the coding protocol
    override required init() {
        
    }

    //decoding NSData
    required init(data: NODE) {
        self.data = data
        //dirty = false
    }

    // MARK: OUT
    var outRelationshipCount: Int? {
    get {
        return 0;
