Accept directed graph input data from STDIN.

`pagerank` now supports getting its input from STDIN as well as a File.