Minor change to HeuristicGraph to get rid of awkward constructor parameters.