private static void Main(string[] args) { Graphs g = new Graphs(); for (int i = 1; i <= 4; i++) { g.GNodes.Add(new Node(i)); } Edge edge = new Edge(g.GNodes[0], g.GNodes[1]); Edge edge2 = new Edge(g.GNodes[0], g.GNodes[3]); g.GEdges.Add(edge); g.GEdges.Add(edge2); IGraphs oG = g.GetCopy(); g.DelegateCreation(Delegates); bool diff = ReferenceEquals(g, oG); Console.ReadLine(); }
private void ClearBtn_Click(object sender, EventArgs e) { graph1 = new Graphs(); graph1.Draw(graph1PB.CreateGraphics(), selectionNode); textBox1.Lines = null; }