changes to_directed to be included in the read graph statement