         get {
             if (context != nil) {
                 
-                var relationship = inRelationships.last
+                let relationship = inRelationships.last
                 
                 if (relationship != nil) {
                     return context!.readNode(relationship!.startNodeID)

            self.update()
        }
        
        var index = find(outRelationships, aRelationship) // init outRelationships in worst case
        _outRelationships.removeAtIndex(index!)
    }



        var previousRelationship:Relationship! = nil
        var nextRelationship:Relationship! = nil
        
        let nextRelationshipID = aRelationship.startNodeNextRelationID
        let previousRelationshipID = aRelationship.startNodePreviousRelationID
        
        if (nextRelationshipID > 0) {
            nextRelationship = context!.readRelationship(nextRelationshipID)
