Skip to content

Commit 3c9a49c

Browse files
author
Kapil Borle
committed
Change GetNumNeighbors to GetOutDegree
1 parent 841dba6 commit 3c9a49c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Engine/Helper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3644,7 +3644,7 @@ public IEnumerable<T> GetNeighbors(T vertex)
36443644
/// </summary>
36453645
/// <param name="vertex"></param>
36463646
/// <returns></returns>
3647-
public int GetNumNeighbors(T vertex)
3647+
public int GetOutDegree(T vertex)
36483648
{
36493649
ValidateVertexArgument(vertex);
36503650
return graph[GetIndex(vertex)].Count;

Tests/Engine/Helper.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Describe "Test Directed Graph" {
1818
}
1919

2020
It "correctly adds the edges" {
21-
$digraph.GetNumNeighbors('v1') | Should Be 2
21+
$digraph.GetOutDegree('v1') | Should Be 2
2222
$neighbors = $digraph.GetNeighbors('v1')
2323
$neighbors -contains 'v2' | Should Be $true
2424
$neighbors -contains 'v5' | Should Be $true

0 commit comments

Comments
 (0)