Pregunta de entrevista de Infosys

Describe why we need to use graphs for complex algorithms.