public void addNode(string name, Dictionary <string, int> edges) { Node newNode = new Node(name); newNode.defineEdges(edges); this.Nodes.Add(newNode); }