deserialization; fixed a bug with addEdgeFromNodeWithKey:ToNodeWithKey