コード例 #1
0
        public void IsolatedVertex()
        {
            AdjacencyGraph g = new AdjacencyGraph();
            g.AddVertex();

            target = new CyclePoppingRandomTreeAlgorithm(g);
            target.RandomTree();
        }
        public void IsolatedVertex()
        {
            AdjacencyGraph<int, Edge<int>> g = new AdjacencyGraph<int, Edge<int>>(true);
            g.AddVertex(0);

            target = new CyclePoppingRandomTreeAlgorithm<int, Edge<int>>(g);
            target.RandomTree();
        }
コード例 #3
0
        public void IsolatedVertex()
        {
            AdjacencyGraph <int, Edge <int> > g = new AdjacencyGraph <int, Edge <int> >(true);

            g.AddVertex(0);

            target = new CyclePoppingRandomTreeAlgorithm <int, Edge <int> >(g);
            target.RandomTree();
        }
コード例 #4
0
 public void Loop()
 {
     target = new CyclePoppingRandomTreeAlgorithm(GraphFactory.Loop());
     target.RandomTree();
 }
 public void Loop()
 {
     CyclePoppingRandomTreeAlgorithm<string, Edge<string>>  target = new CyclePoppingRandomTreeAlgorithm<string, Edge<string>>(new AdjacencyGraphFactory().Loop());
     target.RandomTree();
 }
コード例 #6
0
        public void Loop()
        {
            CyclePoppingRandomTreeAlgorithm <string, Edge <string> > target = new CyclePoppingRandomTreeAlgorithm <string, Edge <string> >(new AdjacencyGraphFactory().Loop());

            target.RandomTree();
        }