Added switch for the out edges