public void AddNode(MctNode node) { if (!_nodes.ContainsKey(node.Id)) { _nodes[node.Id] = node; } }
public void AddSupport(MctNode node, List <bool> constraints) { foreach (var support in _supports) { if (support is MctCommonSupport cs && cs.IsSameBearingType(constraints)) { cs.AddNode(node); return; } } AddSupport(new MctCommonSupport(new List <MctNode>() { node }, constraints)); }