public Node(Air air, NodeDef def) : base(air) { _nodeDef = def; _properties = new Dictionary<string, object>(); _outEdges = new List<Edge>(); _inEdges = new List<Edge>(); }
public Node CreateNode(NodeDef definition) { Node node = new Node(this, definition); _nodes.Add(node); return node; }
public NodeDef CreateNodeDef(string name) { NodeDef nodeDef = new NodeDef(this, name); _nodeDefsByName.Add(nodeDef.Name, nodeDef); return nodeDef; }