Changed behaviour of creategraph's reading from pipe and sending to stdout for all graph types