Fix the slightly hacky method of getting graph width