read edges from stdin instead of argv