public void DeleteSelectedNodes(NodeViewModel node)
 {
     if (node != null)
     {
         node.DisconnectAllConnectors();
         Nodes.Remove(node);
     }
 }