Class TopologicalSortTests
Inheritance
System.Object
TopologicalSortTests
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.Sorting
Assembly: MoreStructures.Tests.dll
Syntax
public abstract class TopologicalSortTests
Constructors
| Improve this Doc View SourceTopologicalSortTests(Func<Int32, IList<(Int32, Int32)>, IGraph>, ITopologicalSort)
Declaration
protected TopologicalSortTests(Func<int, IList<(int, int)>, IGraph> graphBuilder, ITopologicalSort sorter)
Parameters
Type | Name | Description |
---|---|---|
Func<System.Int32, IList<System.ValueTuple<System.Int32, System.Int32>>, IGraph> | graphBuilder | |
ITopologicalSort | sorter |
Properties
| Improve this Doc View SourceGraphBuilder
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> |
Sorter
Declaration
protected ITopologicalSort Sorter { get; }
Property Value
Type | Description |
---|---|
ITopologicalSort |
Methods
| Improve this Doc View SourceSort_IsCorrectWhenMultipleSolutionsArePossible(String, Int32, Int32[], Int32[])
Declaration
public void Sort_IsCorrectWhenMultipleSolutionsArePossible(string graphDescription, int numberOfVertices, int[] starts, int[] ends)
Parameters
Type | Name | Description |
---|---|---|
System.String | graphDescription | |
System.Int32 | numberOfVertices | |
System.Int32[] | starts | |
System.Int32[] | ends |
Sort_IsCorrectWhenSingleSolutionIsPossible(String, Int32, Int32[], Int32[], Int32[])
Declaration
public void Sort_IsCorrectWhenSingleSolutionIsPossible(string graphDescription, int numberOfVertices, int[] starts, int[] ends, int[] expectedTopologicalSort)
Parameters
Type | Name | Description |
---|---|---|
System.String | graphDescription | |
System.Int32 | numberOfVertices | |
System.Int32[] | starts | |
System.Int32[] | ends | |
System.Int32[] | expectedTopologicalSort |
Sort_RaisesExceptionWhenNoDag(String, Int32, Int32[], Int32[])
Declaration
public void Sort_RaisesExceptionWhenNoDag(string graphDescription, int numberOfVertices, int[] starts, int[] ends)
Parameters
Type | Name | Description |
---|---|---|
System.String | graphDescription | |
System.Int32 | numberOfVertices | |
System.Int32[] | starts | |
System.Int32[] | ends |