We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 841dba6 commit 3c9a49cCopy full SHA for 3c9a49c
2 files changed
Engine/Helper.cs
@@ -3644,7 +3644,7 @@ public IEnumerable<T> GetNeighbors(T vertex)
3644
/// </summary>
3645
/// <param name="vertex"></param>
3646
/// <returns></returns>
3647
- public int GetNumNeighbors(T vertex)
+ public int GetOutDegree(T vertex)
3648
{
3649
ValidateVertexArgument(vertex);
3650
return graph[GetIndex(vertex)].Count;
Tests/Engine/Helper.tests.ps1
@@ -18,7 +18,7 @@ Describe "Test Directed Graph" {
18
}
19
20
It "correctly adds the edges" {
21
- $digraph.GetNumNeighbors('v1') | Should Be 2
+ $digraph.GetOutDegree('v1') | Should Be 2
22
$neighbors = $digraph.GetNeighbors('v1')
23
$neighbors -contains 'v2' | Should Be $true
24
$neighbors -contains 'v5' | Should Be $true
0 commit comments