lil tweaks

master
Evan Hemsley 2019-10-23 19:01:37 -07:00
parent 01556338eb
commit 031a0e1e23
2 changed files with 1 additions and 4 deletions

View File

@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
namespace MoonTools.Core.Graph
{
public class DirectedMultiGraph<TNode, TEdgeData> : MultiGraph<TNode, TEdgeData> where TNode : System.IEquatable<TNode>

View File

@ -63,7 +63,7 @@ namespace MoonTools.Core.Graph
gScore[start] = 0;
fScore[start] = heuristic(start, end);
while (openSet.Any())
while (openSet.Count > 0)
{
var currentNode = openSet.MinBy(node => fScore[node]).First();