lil tweaks
parent
01556338eb
commit
031a0e1e23
|
@ -1,6 +1,3 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace MoonTools.Core.Graph
|
namespace MoonTools.Core.Graph
|
||||||
{
|
{
|
||||||
public class DirectedMultiGraph<TNode, TEdgeData> : MultiGraph<TNode, TEdgeData> where TNode : System.IEquatable<TNode>
|
public class DirectedMultiGraph<TNode, TEdgeData> : MultiGraph<TNode, TEdgeData> where TNode : System.IEquatable<TNode>
|
||||||
|
|
|
@ -63,7 +63,7 @@ namespace MoonTools.Core.Graph
|
||||||
gScore[start] = 0;
|
gScore[start] = 0;
|
||||||
fScore[start] = heuristic(start, end);
|
fScore[start] = heuristic(start, end);
|
||||||
|
|
||||||
while (openSet.Any())
|
while (openSet.Count > 0)
|
||||||
{
|
{
|
||||||
var currentNode = openSet.MinBy(node => fScore[node]).First();
|
var currentNode = openSet.MinBy(node => fScore[node]).First();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue