public Node(string name, SimModel model) { this.name = name; this.model = model; this.state = null; neighbors = new List <Node>(); }
public Network(int nodeCount) { nodes = new Node[nodeCount]; model = new SimModel(); for (int i = 0; i < nodeCount; i++) { nodes[i] = new Node(char.ToString(Convert.ToChar('A' + i)), model); } }