public void ReLayoutGraph()
        {
            graph = new PocGraph(true);
            count++;



            List <PocVertex> existingVertices = new List <PocVertex>();

            existingVertices.Add(new PocVertex(String.Format("Barn Rubble{0}", count), true));          //0
            existingVertices.Add(new PocVertex(String.Format("Frank Zappa{0}", count), false));         //1
            existingVertices.Add(new PocVertex(String.Format("Gerty CrinckleBottom{0}", count), true)); //2


            foreach (PocVertex vertex in existingVertices)
            {
                Graph.AddVertex(vertex);
            }


            //add some edges to the graph
            AddNewGraphEdge(existingVertices[0], existingVertices[1]);
            AddNewGraphEdge(existingVertices[0], existingVertices[2]);


            NotifyPropertyChanged("Graph");
        }
        public MainWindowViewModel()
        {
            Graph = new PocGraph(true);


            List <PocVertex> existingVertices = new List <PocVertex>();

            existingVertices.Add(new PocVertex("Sacha Barber", true));  //0
            existingVertices.Add(new PocVertex("Sarah Barber", false)); //1
            existingVertices.Add(new PocVertex("Marlon Grech", true));  //2


            foreach (PocVertex vertex in existingVertices)
            {
                Graph.AddVertex(vertex);
            }


            //add some edges to the graph
            AddNewGraphEdge(existingVertices[0], existingVertices[1]);
            AddNewGraphEdge(existingVertices[0], existingVertices[2]);

            //Add Layout Algorithm Types
            layoutAlgorithmTypes.Add("BoundedFR");
            layoutAlgorithmTypes.Add("Circular");
            layoutAlgorithmTypes.Add("CompoundFDP");
            layoutAlgorithmTypes.Add("EfficientSugiyama");
            layoutAlgorithmTypes.Add("FR");
            layoutAlgorithmTypes.Add("ISOM");
            layoutAlgorithmTypes.Add("KK");
            layoutAlgorithmTypes.Add("LinLog");
            layoutAlgorithmTypes.Add("Tree");

            //Pick a default Layout Algorithm Type
            LayoutAlgorithmType = "LinLog";
        }