/// <summary> /// Picks far away nodes with a thin bottleneck /// </summary> public static double Score_SkinnyPipe( ExplorationNode current, ExplorationNode candidate) { int length = current.GetPathOut(candidate.Id).Length; int minCutOut = current.GetMinCutOut(candidate.Id); return (double)minCutOut / (double)length; }
private static double ScoreNodeSkinnyPipe( ExplorationNode current, ExplorationNode candidate) { int length = current.GetPathOut(candidate.Id).Length; int minCutOut = current.GetMinCutOut(candidate.Id); double modifier = ScorePath(current.GetPathOut(candidate.Id)); return ((double)minCutOut / (double)length) / modifier; }