gama-platform / gama.old

Main repository for developing the 1.x versions of GAMA
GNU General Public License v3.0
304 stars 99 forks source link

Strahler model does not work due to main_connected_component operator #2807

Closed benoitgaudou closed 5 years ago

benoitgaudou commented 5 years ago

Describe the bug Run the model Strahler.gaml in Modeling / Spatial topology / Graphs.

We should observe a river network with Strahler order on the river and the associated color. Instead, we get a 0 order for all the rivers.

This seems to be due to the main_connected_component operator in:

river_network <- directed(main_connected_component(as_edge_graph(river)));

that returns an empty graph from the river network (not empty).

Desktop (please complete the following information):

benoitgaudou commented 5 years ago

Fixed by commit 0e7e15f