 //  Created by Stephan Zehrer on 10.06.14.
 //  Copyright (c) 2014 Stephan Zehrer. All rights reserved.
 //
-
-import Foundation
-
-/**
-protocol Node {
-    
-    // OUT
-    var outRelationshipCount: Int? { get }
-    var firstOutNode: Node? { get }
-    var lastOutNode: Node? { get }
-    
-    var outRelationships: Relationship[] { get }
-    
-    func outRelationshipTo(node: Node) -> Relationship?
-    
-    func addOutRelationshipNode(node: Node) -> Relationship?
-    func deleteOutRelationshipNode(node: Node)
-    
-    //func outNodeEnumerator() -> NSEnumerator
-    
-    
-    // IN
-    var inRelationshipCount: Int? { get }
-    var firstInNode: Node? { get }
-    var lastInNode: Node? { get }
-    
-    var inRelationships: Relationship[] { get }
-    
-    func inRelationshipFrom(node: Node) -> Relationship?
-    
-    func addInRelationshipNode(node: Node) -> Relationship?
-    func deleteInRelationshipNode(node: Node)
-    
-    //func inNodeEnumerator() -> NSEnumerator
-    
-}
-*/
 
 struct NODE : Init {
     var nextPropertyID: UID = 0; // 4

    }
}



class Node : GraphElement, Coding {

    var data: NODE = NODE()

    //var uid: UID? = nil
    //var dirty: Bool = true
    
    override required init() {
        
    }

        self.data = data
        
    }
    
    // OUT
    var outRelationshipCount: Int? {
