Changed the prototype of niche_model_graph