Exemple #1
0
 public Node(string name, SimModel model)
 {
     this.name  = name;
     this.model = model;
     this.state = null;
     neighbors  = new List <Node>();
 }
Exemple #2
0
 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);
     }
 }