Beispiel #1
0
        public void CreateNewLocation()
        {
            if (_graph.SubGraphs.Any(subgraph => subgraph.Label == NewLocationName))
            {
                return;
            }

            var subGraph = new MySubGraph <Location> {
                Label = NewLocationName
            };

            subGraph.AddVertex(new Location("?", Generated.True));

            _graph.AddSubGraph(subGraph);

            OnPropertyChanged("LocationNames");
        }