Graph traversal impls.