public Vertex(GraphContainer p) { InitializeComponent(); parent = p; X = 10; Y = 10; OnXChanged += UpdateX; OnYChanged += UpdateY; }
public EdgeContainer(Vertex f, Vertex t, Canvas pc, GraphContainer p, bool d, int w = 0) { InitializeComponent(); parent = p; parentCanvas = pc; from = f; to = t; direct = d; weight = w; AddEdge(f, t, d, w); }