hobbit graph problem