Accept directed graph input data from STDIN.