To Dwight's (I've met him a few times, too. He actually seems like a clever guy) credit, it sounds like he said Dijkstra ;) Just goes to show how little the producers of the show care about the "techy stuff".
Or if you know the path will be a constant numbers of edges, I guess, otherwise adding weights would bias the algorithm toward fewer hops.