public List <Flow> GetFlows(PutDir dir) { if (dir == PutDir.IN) { return(inFlows); } if (dir == PutDir.OUT) { return(outFlows); } Debug.Assert(false); return(inFlows); }
public void SetNode(PutDir type, Node node) { ref var n = ref GetNodeRef(type);
static public PutDir GetOpposite(PutDir dir) { return((PutDir)(((int)dir + 1) % 2)); }
public void RemoveFlow(PutDir dir, Flow flow) { var flows = GetFlows(dir); flows.Remove(flow); }
public void AddFlow(PutDir dir, Flow flow) { var flows = GetFlows(dir); flows.Add(flow); }