Amazon interview question

What is the time complexity for graphs?