Class MstFinderTests
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MoreStructures.Tests.Graphs.MinimumSpanningTree
Assembly: MoreStructures.Tests.dll
Syntax
public abstract class MstFinderTests
Constructors
| Improve this Doc View SourceMstFinderTests(Func<Int32, IList<(Int32, Int32)>, IGraph>, Func<IMstFinder>)
Declaration
protected MstFinderTests(Func<int, IList<(int, int)>, IGraph> graphBuilder, Func<IMstFinder> builder)
Parameters
Type | Name | Description |
---|---|---|
Func<System.Int32, IList<System.ValueTuple<System.Int32, System.Int32>>, IGraph> | graphBuilder | |
Func<IMstFinder> | builder |
Properties
| Improve this Doc View SourceFinderBuilder
Declaration
protected Func<IMstFinder> FinderBuilder { get; }
Property Value
Type | Description |
---|---|
Func<IMstFinder> |
GraphBuilder
Declaration
protected Func<int, IList<(int, int)>, IGraph> GraphBuilder { get; }
Property Value
Type | Description |
---|---|
Func<System.Int32, IList<System.ValueTuple<System.Int32, System.Int32>>, IGraph> |
Methods
| Improve this Doc View SourceFind_IsCorrect(String, Int32, Int32[], Int32[], Int32[], Int32)
Declaration
public void Find_IsCorrect(string graphDescription, int numberOfVertices, int[] starts, int[] ends, int[] distances, int expectedMstWeight)
Parameters
Type | Name | Description |
---|---|---|
System.String | graphDescription | |
System.Int32 | numberOfVertices | |
System.Int32[] | starts | |
System.Int32[] | ends | |
System.Int32[] | distances | |
System.Int32 | expectedMstWeight |
Find_ThrowsExceptionIfTheGraphIsNotConnected(String, Int32, Int32[], Int32[], Int32[])
Declaration
public void Find_ThrowsExceptionIfTheGraphIsNotConnected(string graphDescription, int numberOfVertices, int[] starts, int[] ends, int[] distances)
Parameters
Type | Name | Description |
---|---|---|
System.String | graphDescription | |
System.Int32 | numberOfVertices | |
System.Int32[] | starts | |
System.Int32[] | ends | |
System.Int32[] | distances |