public DataVertex gg_getVertex(int id)
 {
     var item = DataSource.FirstOrDefault(a => a.ID == id);
     if (item == null) item = new Models.DataItem() { ID = id, Text = id.ToString() };
     exampleVertexStorage.Add(id, new DataVertex() { ID = item.ID, Text = item.Text, DataImage = new BitmapImage(new Uri(@"pack://application:,,,/GraphX.Controls;component/Images/help_black.png", UriKind.Absolute)) { CacheOption = BitmapCacheOption.OnLoad } });
     return exampleVertexStorage.Last().Value;
 }
        public DataVertex gg_getVertex(int id)
        {
            var item = DataSource.FirstOrDefault(a => a.ID == id);

            if (item == null)
            {
                item = new Models.DataItem()
                {
                    ID = id, Text = id.ToString()
                }
            }
            ;
            exampleVertexStorage.Add(id, new DataVertex()
            {
                ID = item.ID, Text = item.Text, DataImage = new BitmapImage(new Uri(@"pack://application:,,,/GraphX.Controls;component/Images/help_black.png", UriKind.Absolute))
                {
                    CacheOption = BitmapCacheOption.OnLoad
                }
            });
            return(exampleVertexStorage.Last().Value);
        }