Update `algorithm` for Strongly Connected Componenents