Intentionally partial code for discussion of simple graph algos using JS.