graph-search: first cut implemented and debugged