public function updateBiaya(request $request)
 {
     foreach ($request->h as $k => $v) {
         \App\Models\heuristic::find($k)->update(['hCost' => $v]);
     }
     $kota = kota::all();
     return view('home', ['kota' => $kota]);
     //        dd($request->h);
 }
 public function getFValue($node)
 {
     if ($node !== $this->start) {
         $h = \App\Models\heuristic::find($node)->pluck('hCost');
         $f = $this->gCostNodes[$node] + $h;
         return $f;
     }
 }