Beispiel #1
0
        private void DbGraph_Click(object sender, RoutedEventArgs e)
        {
            var graph = GraphDbInfo.GetDbModelGraph();

            GraphArea1.LogicCore.Graph = Convertors.Convert(graph);
            GraphArea1.GenerateGraph();
            ZoomCtrl.ZoomToFill();
        }
Beispiel #2
0
        private void OtherExample_Click(object sender, RoutedEventArgs e)
        {
            //var graph = GraphSamplesFactory.SimpleExample1();
            //var graph = GraphSamplesFactory.SimpleExample2();
            //var graph = GraphSamplesFactory.QuickGraphRandomGraph(vertexCount:10, edgeCount: 20);
            var graph = GraphSamplesFactory.QuickGraphRandomGraph(vertexCount: 20, edgeCount: 40);

            //var graph = GraphSamplesFactory.CircleGraph( vertexCount:15);
            //var graph = GraphSamplesFactory.FullGraph(vertexCount: 15);
            //var graph = GraphSamplesFactory.TreeGraph(levels:2, degree: 3);

            GraphArea1.LogicCore.Graph = Convertors.Convert(graph);

            GraphArea1.GenerateGraph();

            ZoomCtrl.ZoomToFill();
        }