Code from WSDM11 paper