Fixed Graph::from_file method and added -r cmdline option for reading from file