The input should be a directed graph in compressed sparse row (CSR) format. The result is a value that shows the final estimated diameter. Also, the source and destination of the path are given.