A fast ranking algorithm for predicting gene functions in biomolecular networks