Commented graph search code