Beispiel #1
0
 public MultiSourceSinkGraphAugmentorAlgorithm(IMutableBidirectionalGraph <TVertex, TEdge> visitedGraph)
     : this(visitedGraph,
            FactoryCompiler.GetVertexFactory <TVertex>(),
            FactoryCompiler.GetEdgeFactory <TVertex, TEdge>()
            )
 {
 }
Beispiel #2
0
 public MaximumBipartiteMatchingAlgorithm(
     IMutableVertexAndEdgeListGraph <TVertex, TEdge> visitedGraph
     )
     : this(visitedGraph,
            FactoryCompiler.GetVertexFactory <TVertex>(),
            FactoryCompiler.GetEdgeFactory <TVertex, TEdge>()
            )
 {
 }
Beispiel #3
0
 public AllVerticesGraphAugmentorAlgorithm(
     IMutableVertexAndEdgeListGraph <TVertex, TEdge> visitedGraph
     )
     : this(visitedGraph,
            FactoryCompiler.GetVertexFactory <TVertex>(),
            FactoryCompiler.GetEdgeFactory <TVertex, TEdge>()
            )
 {
 }
Beispiel #4
0
 public GraphBalancerAlgorithm(
     IMutableBidirectionalGraph <TVertex, TEdge> visitedGraph,
     TVertex source,
     TVertex sink
     )
     : this(visitedGraph,
            source,
            sink,
            FactoryCompiler.GetVertexFactory <TVertex>(),
            FactoryCompiler.GetEdgeFactory <TVertex, TEdge>()
            )
 {
 }
Beispiel #5
0
 public static void Create <TVertex, TEdge>(
     IMutableVertexAndEdgeListGraph <TVertex, TEdge> g,
     Random rnd,
     int vertexCount,
     int edgeCount,
     bool selfEdges
     ) where TEdge : IEdge <TVertex>
 {
     Create <TVertex, TEdge>(
         g,
         FactoryCompiler.GetVertexFactory <TVertex>(),
         FactoryCompiler.GetEdgeFactory <TVertex, TEdge>(),
         rnd,
         vertexCount,
         edgeCount,
         selfEdges
         );
 }