public static void DirectedGraphViaMsagl()
        {
            var page1 = SampleEnvironment.Application.ActiveDocument.Pages.Add();
            var directed_graph_drawing = DirectGraphLayoutSamples.get_dg_drawing();
            var options = new DGMODEL.MsaglLayoutOptions();

            options.UseDynamicConnectors = false;
            directed_graph_drawing.Render(page1, options);
        }
        public static void DirectedGraphViaVisio()
        {
            var page1 = SampleEnvironment.Application.ActiveDocument.Pages.Add();
            var directed_graph_drawing = DirectGraphLayoutSamples.get_dg_drawing();

            var visio_options = new DGMODEL.VisioLayoutOptions();

            directed_graph_drawing.Render(page1, visio_options);

            var padding = new VA.Drawing.Size(0.5, 0.5);

            page1.ResizeToFitContents(padding);
        }