JavaScript:实现BreadthFirstShortestPath广度优先最短路径算法
export function breadthFirstShortestPath (graph, startNode, targetNode) {
// check if startNode & targetNode are identical
if (startNode === targetNode)
export function breadthFirstShortestPath (graph, startNode, targetNode) {
// check if startNode & targetNode are identical
if (startNode === targetNode)