AI notes: Trees vs graphs