Skip to content

Commit

Permalink
Changed the name of a method to be more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
starskythehutch committed Mar 10, 2012
1 parent 70b0be8 commit 847ec09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Algorithms/Trees/BurkhardKellerTree.cs
Expand Up @@ -59,10 +59,10 @@ public IEnumerable<T> FindItemsWithinDistanceOf(T value, double distance)
throw new ArgumentOutOfRangeException("distance", "Distance should be a positive number.");
}

return FindMatchingNodes(RootNode, value, distance);
return FindMatchingItems(RootNode, value, distance);
}

private IEnumerable<T> FindMatchingNodes(Node<T> node, T value, double distance)
private IEnumerable<T> FindMatchingItems(Node<T> node, T value, double distance)
{
double differenceWithNode = distanceCalculator(node.Data, value);

Expand All @@ -76,9 +76,9 @@ private IEnumerable<T> FindMatchingNodes(Node<T> node, T value, double distance)

foreach (Edge<T> edge in node.Edges.Where(e => e.Value >= minimum && e.Value <= maximum))
{
foreach (T matchingNode in FindMatchingNodes(edge.EndNode, value, distance))
foreach (T item in FindMatchingItems(edge.EndNode, value, distance))
{
yield return matchingNode;
yield return item;
}
}
}
Expand Down

0 comments on commit 847ec09

Please sign in to comment.