private void Parse()
 {
     if (!string.IsNullOrWhiteSpace(Input))
     {
         if (GraphBuilder <Node, Link> .TryParse(Input,
                                                 out NavGraph <Node, Link> navgraph,
                                                 out string message, (s) => { return(new Node(s)); }))
         {
             NavGraph = navgraph;
             var graph   = NavGraph.ToGraph <Node, Link>();
             var options = new JsonSerializerOptions()
             {
             };
             options.WriteIndented = true;
             Output = JsonSerializer.Serialize <Graph>(graph, options);
             GraphViewModel gvm = new GraphViewModel(graph);
             Items.Add(gvm.Root);
         }
     }
 }