protected override void SolvePartTwo() { var aaStart = new RecursiveDonutSearchNode(graph, "AA:OUT", 0, "ZZ:OUT", 0); var zzEnd = Search <HeapPriorityQueue <SearchNode> > .Execute(aaStart); resultPartTwo = zzEnd.cost.ToString(); }
public RecursiveDonutSearchNode(DonutGraph graph, string portal, int layer, string target, int cost, RecursiveDonutSearchNode parent = null) : base(cost, parent) { this.graph = graph; this.portal = portal; this.layer = layer; this.target = target; }