internal void InternalRemoveNodeRequest(ArrayDCN <T> targetNode) { int targetNodeIndex = GetNodeIndex(targetNode); nodeConnectionGrid.RemoveEntry(targetNodeIndex); nodeList.RemoveAt(targetNodeIndex); }
private void RemoveConnectionWith(ArrayDCN <T> typedNode, ConnectionDirection direction) { if (Helpers <T> .CheckWhether_RemoveConnectionWith_IsNeeded(typedNode, this)) { return; } ParentCollection.DisconnectNodes(this, typedNode, direction); }
private void AddConnectionWith(ArrayDCN <T> typedNode, ConnectionDirection direction) { Helpers <T> .Verify_AddConnectionWith_ConditionsAreSatisfied(typedNode, this); ParentCollection.ConnectNodes(this, typedNode, direction); }
private int GetNodeIndex(ArrayDCN <T> node) { return(nodeList.IndexOf(node)); }
internal int InternalAddNodeRequest(ArrayDCN <T> node) { nodeList.Add(node); return(nodeConnectionGrid.AddDisconnectedEntry()); }