Updated graph walk algo + Reuploaded d3 legend code