Updated graph to include reverse edges