Skip to content

Commit

Permalink
remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Dec 28, 2021
1 parent e4caa0d commit 1a8cdaa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions layouts/partials/graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ <h3>Interactive Graph</h3>
while (depth >= 0 && wl.length > 0) {
// compute neighbours
const cur = wl.shift()
console.log(depth, cur, wl)
if (cur === "__SENTINEL") {
depth--
wl.push("__SENTINEL")
} else {
neighbours.add(cur)
const outgoing = index.links[cur] || []
const incoming = index.backlinks[cur] || []
console.log(incoming)
wl.push(...outgoing.map(l => l.target), ...incoming.map(l => l.source))
}
}
Expand Down

0 comments on commit 1a8cdaa

Please sign in to comment.