private void LayoutGeometry_Click(object sender, RoutedEventArgs e)
        {
            var dgraph = FromGeometryContainer.Children[0] as DGraph;
            var dg     = dgraph.Graph;

            GeometryTest.Layout(dg.GeometryGraph);
            dgraph.Invalidate();
        }
        public void SetGeometryGraph(Microsoft.Msagl.Core.Layout.GeometryGraph gg)
        {
            GeometryTest.Layout(gg);
            var dg     = FromGeometry.CreateDrawingGraph(gg);
            var dgraph = DGraph.FromDrawingGraph(dg);

            dgraph.Name = "From Geometry";
            FromGeometryContainer.Children.Insert(0, dgraph);
        }
 private void GeometryTest_Click(object sender, RoutedEventArgs e)
 {
     GeometryTest.Go();
 }
        private void CreateGraphFromGeometry()
        {
            var gg = GeometryTest.Create();

            SetGeometryGraph(gg);
        }