Пример #1
0
        public ArborSampleForm()
        {
            InitializeComponent();

            fTip     = new ToolTip();
            fTipShow = false;

            arborViewer1.EnergyDebug   = true;
            arborViewer1.NodesDragging = true;

            ArborSystem.CreateSample(arborViewer1.System.Graph);
            arborViewer1.System.Start();
        }
Пример #2
0
        public void Graph2_Tests()
        {
            using (Graph graph = new Graph())
            {
                ArborSystem.CreateSample(graph);

                Vertex vertex = graph.FindVertex("1");
                graph.FindPathTree(vertex);

                IEnumerable <Edge> path = graph.GetPath(graph.FindVertex("110"));
                // 110, 88, 67, 53, 23, 4, 1
            }
        }