Exemplo n.º 1
0
 public Lee(IConnectedComponentsCounter <TGraph, TVertex> connectedComponentsCounter)
 {
     _connectedComponentsCounter = connectedComponentsCounter ?? throw new ArgumentNullException(nameof(connectedComponentsCounter));
     _verticesComparer           = new GraphVertexEqualityComparer <TVertex>();
 }
Exemplo n.º 2
0
 public EulerCycleSearcher(IConnectedComponentsCounter <TGraph, TVertex> connectedComponentsCounter)
 {
     _connectedComponentsCounter = connectedComponentsCounter ?? throw new ArgumentNullException(nameof(connectedComponentsCounter));
 }
Exemplo n.º 3
0
 public Kruskal(IConnectedComponentsCounter <TGraph, TVertex> connectedComponentsCounter, ICyclesDetector <TGraph, TVertex> cyclesDetector)
 {
     _connectedComponentsCounter = connectedComponentsCounter ?? throw new ArgumentNullException(nameof(connectedComponentsCounter));
     _cyclesDetector             = cyclesDetector ?? throw new ArgumentNullException(nameof(cyclesDetector));
 }
Exemplo n.º 4
0
 public ArticulationPointSearcher(IConnectedComponentsCounter <TGraph, TVertex> connectedComponentsCounter)
 {
     _connectedComponentsCounter = connectedComponentsCounter ?? throw new ArgumentNullException(nameof(connectedComponentsCounter));
 }