private void OnMutableGraphVertexRemoved([NotNull] TVertex vertex) { if (VerticesControls.ContainsKey(vertex)) { _verticesRemoved.Enqueue(vertex); DoNotificationLayout(); } }
private void CreateGraphControls() { // Vertices controls foreach (TVertex vertex in Graph.Vertices) { if (!VerticesControls.ContainsKey(vertex)) { CreateVertexControl(vertex); } } // Edges controls foreach (TEdge edge in Graph.Edges) { if (!EdgesControls.ContainsKey(edge)) { CreateEdgeControl(edge); } } }