void DeselectNode()
 {
     if (!selected_node)
     {
         return;
     }
     selected_node.setSelected(false);
     selected_node = null;
 }
 void SetSelectedNode(PathNodeMain node)
 {
     DeselectNode();
     selected_node = node;
     selected_node.setSelected(true);
 }