Accurate slope map and the governing river network of a river basin are key inputs of hydrologic models. The purpose of this study was to investigate the effectiveness of the PriorityFlow tool in topographic data processing with the aim of improving slope map extraction in the eastern Faryab Basin. PriorityFlow is a tool in the R programming environment, which aims to generate the correct slope map and to form a network of continuous pathways that matches the observed river network. To process the digital elevation model and prepare the slope map, three input files were used, including the digital elevation model, the representative map of the watershed and the representative map of the observed river network of the study area. After producing the slope map using this package, the obtained results were compared with the outputs obtained from other traditional tools available in the Parflow hydrological model. Specifically, the river network map related to the two slope maps were extracted by the Parflow model under the condition of very low permeability of the domain surface and compared with the observed river network of the study basin. The results showed that the slope map produced by the PriorityFlow tool has led to the production of a more accurate river network that matches the real river network of the eastern Faryab basin. Also, this software package is able to produce the slope map with enhanced accuracy and based on non-diagonal connections along the cell levels in the digital elevation model of the study area.