modified duplicate line to use intended graph H.