当前位置: 首页>>代码示例>>C#>>正文


C# Providers.VertexAndEdgeProvider类代码示例

本文整理汇总了C#中QuickGraph.Providers.VertexAndEdgeProvider的典型用法代码示例。如果您正苦于以下问题:C# VertexAndEdgeProvider类的具体用法?C# VertexAndEdgeProvider怎么用?C# VertexAndEdgeProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


VertexAndEdgeProvider类属于QuickGraph.Providers命名空间,在下文中一共展示了VertexAndEdgeProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddEdgeTargetNotFound04

 public void AddEdgeTargetNotFound04()
 {
     AdjacencyGraph adjacencyGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     adjacencyGraph = AdjacencyGraphFactory.CreateCyclicGraph(s0, true, 9);
     this.AddEdgeTargetNotFound(adjacencyGraph);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:GenericMutableGraphTestNEWAddEdgeTargetN.g.cs

示例2: RemoveEdgeIf04

 public void RemoveEdgeIf04()
 {
     BidirectionalGraph bidirectionalGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     bidirectionalGraph = BidirectionalGraphFactory.CreateCyclicGraph(s0, false, 0);
     this.RemoveEdgeIf(bidirectionalGraph);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:GenericMutableEdgeListGraphTestRemoveEdg.g.cs

示例3: RemoveEdgeIf05

 public void RemoveEdgeIf05()
 {
     BidirectionalGraph bidirectionalGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     bidirectionalGraph = BidirectionalGraphFactory.CreateCyclicGraph(s0, false, 16);
     ((GenericMutableEdgeListGraphTest)this).RemoveEdgeIf(bidirectionalGraph);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:BidirectionaleMutableEdgeListGraphTestRe.g.cs

示例4: AddEdgeTargetNotFound04

 public void AddEdgeTargetNotFound04()
 {
     AdjacencyGraph adjacencyGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     adjacencyGraph = AdjacencyGraphFactory.CreateAcyclicGraph(s0, false, 5);
     ((GenericMutableGraphTestNEW)this).AddEdgeTargetNotFound(adjacencyGraph);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:BidirectionaleMutableGraphTestAddEdgeTar.g.cs

示例5: CreateAcyclicGraph

        public static AdjacencyGraph CreateAcyclicGraph(
            VertexAndEdgeProvider provider_iVertexAndEdgeProvider,
            bool allowParallelEdges_b,
            int numberOfVertices
            )
        {
            PexAssume.IsTrue(numberOfVertices < 50);

            AdjacencyGraph adjacencyGraph
               = new AdjacencyGraph(provider_iVertexAndEdgeProvider, allowParallelEdges_b);

            IVertex u = adjacencyGraph.AddVertex();
            IVertex v = adjacencyGraph.AddVertex();
            IVertex w = adjacencyGraph.AddVertex();
            adjacencyGraph.AddEdge(u, v);
            adjacencyGraph.AddEdge(v, w);
            adjacencyGraph.AddEdge(u, w);

            //Adding remaining number of vertices
            for (int count = 3; count < numberOfVertices; count++)
            {
                adjacencyGraph.AddVertex();
            }

            return adjacencyGraph;
        }
开发者ID:taoxiease,项目名称:asegrp,代码行数:26,代码来源:AdjacencyGraphFactory.cs

示例6: GraphWithSelfEdgesPUT06

 public void GraphWithSelfEdgesPUT06()
 {
     AdjacencyGraph adjacencyGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     adjacencyGraph = AdjacencyGraphFactory.CreateAcyclicGraph(s0, true, 0);
     this.GraphWithSelfEdgesPUT(adjacencyGraph, 2);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:BreadthFirstAlgorithmSearchTestNEWGraphW.g.cs

示例7: AddEdgeSourceNotFound05

 public void AddEdgeSourceNotFound05()
 {
     AdjacencyGraph adjacencyGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     adjacencyGraph = AdjacencyGraphFactory.CreateCyclicGraph(s0, true, 6);
     ((GenericMutableGraphTestNEW)this).AddEdgeSourceNotFound(adjacencyGraph);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:BidirectionaleMutableGraphTestAddEdgeSou.g.cs

示例8: AddRemoveVertexNotFound05

 public void AddRemoveVertexNotFound05()
 {
     AdjacencyGraph adjacencyGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     adjacencyGraph = AdjacencyGraphFactory.CreateCyclicGraph(s0, false, 0);
     this.AddRemoveVertexNotFound(adjacencyGraph);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:GenericMutableGraphTestNEWAddRemoveVerte01.g.cs

示例9: AddRemoveVertexNotFound04

 public void AddRemoveVertexNotFound04()
 {
     AdjacencyGraph adjacencyGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     adjacencyGraph = AdjacencyGraphFactory.CreateAcyclicGraph(s0, true, 4);
     ((GenericMutableGraphTestNEW)this).AddRemoveVertexNotFound(adjacencyGraph);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:BidirectionaleMutableGraphTestAddRemoveV01.g.cs

示例10: RemoveEdgeNotFound05

 public void RemoveEdgeNotFound05()
 {
     AdjacencyGraph adjacencyGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     adjacencyGraph = AdjacencyGraphFactory.CreateAcyclicGraph(s0, true, 49);
     this.RemoveEdgeNotFound(adjacencyGraph);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:GenericMutableGraphTestNEWRemoveEdgeNotF.g.cs

示例11: AddRemoveVertexNotFound04

 public void AddRemoveVertexNotFound04()
 {
     AdjacencyGraph adjacencyGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     adjacencyGraph = AdjacencyGraphFactory.CreateAcyclicGraph(s0, true, 16);
     this.AddRemoveVertexNotFound(adjacencyGraph);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:GenericMutableGraphTestNEWAddRemoveVerte01.g.cs

示例12: AddEdgeTargetNotFound03

 public void AddEdgeTargetNotFound03()
 {
     AdjacencyGraph adjacencyGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     adjacencyGraph = AdjacencyGraphFactory.CreateAcyclicGraph(s0, false, 4);
     this.AddEdgeTargetNotFound(adjacencyGraph);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:GenericMutableGraphTestNEWAddEdgeTargetN.g.cs

示例13: SortCyclicPUT_NEW06

 public void SortCyclicPUT_NEW06()
 {
     AdjacencyGraph adjacencyGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     adjacencyGraph = AdjacencyGraphFactory.CreateAcyclicGraph(s0, false, 16);
     this.SortCyclicPUT_NEW(adjacencyGraph, (IVertex[])null, false);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:TopologicalSortAlgorithmTestNEWSortCycli.g.cs

示例14: CreateCyclicGraph

        public static BidirectionalGraph CreateCyclicGraph(
            VertexAndEdgeProvider provider_iVertexAndEdgeProvider,
            bool allowParallelEdges_b,
            int numberOfVertices)
        {
            PexAssume.IsTrue(numberOfVertices < 50);

            BidirectionalGraph biGraph
               = new BidirectionalGraph(provider_iVertexAndEdgeProvider, allowParallelEdges_b);

            IVertex u = biGraph.AddVertex();
            IVertex v = biGraph.AddVertex();
            IVertex w = biGraph.AddVertex();
            biGraph.AddEdge(u, v);
            biGraph.AddEdge(v, w);
            biGraph.AddEdge(w, u);

            //Adding remaining number of vertices
            for (int count = 3; count < numberOfVertices; count++)
            {
                biGraph.AddVertex();
            }

            return biGraph;
        }
开发者ID:taoxiease,项目名称:asegrp,代码行数:25,代码来源:BidirectionalGraphFactory.cs

示例15: AddEdgeSourceNotFound03

 public void AddEdgeSourceNotFound03()
 {
     AdjacencyGraph adjacencyGraph;
     VertexAndEdgeProvider s0 = new VertexAndEdgeProvider();
     adjacencyGraph = AdjacencyGraphFactory.CreateAcyclicGraph(s0, true, 26);
     this.AddEdgeSourceNotFound(adjacencyGraph);
 }
开发者ID:taoxiease,项目名称:asegrp,代码行数:7,代码来源:GenericMutableGraphTestNEWAddEdgeSourceN.g.cs


注:本文中的QuickGraph.Providers.VertexAndEdgeProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。