コード例 #1
0
        private dynamic ConnectGraphNodes(MyGraph <GraphNodeTestClass> myGraph)
        {
            myGraph.Connect(myGraph[0], myGraph[1]);
            myGraph.Connect(myGraph[0], myGraph[3]);
            myGraph.Connect(myGraph[1], myGraph[0]);
            myGraph.Connect(myGraph[1], myGraph[2]);
            myGraph.Connect(myGraph[2], myGraph[3]);
            myGraph.Connect(myGraph[3], myGraph[1]);
            myGraph.Connect(myGraph[4], myGraph[5]);
            myGraph.Connect(myGraph[5], myGraph[2]);
            myGraph.Connect(myGraph[5], myGraph[3]);

            return(myGraph);
        }