Yahoo interview question

a problem about graph analytics.