JamesBremner / so77307162

Group graph vertices according to attributes.
1 stars 0 forks source link

Handle components #15

Closed remidelattre closed 1 year ago

remidelattre commented 1 year ago

Note: a component is a subset of the nodes in a graph where every node in a subset is reachable from every other node in the same subset and by no nodes in the other subset. If all the nodes in a graph are reachable form each other, then the graph has one component.

remidelattre commented 1 year ago

Yes, I think this implementation would be worth it. What I meant is that the amount of disconnected components might vary depending on wether we run the algorithm on the national file or on the regional files.

JamesBremner commented 1 year ago

" I think this implementation would be worth it."

OK. Please remember to assign an enhancement issue to me when you have decided you want it to be implemented

JamesBremner commented 1 year ago

I have edited the initial comment to clarify what will be implemented. Please check that this matches your requirements.

remidelattre commented 1 year ago

This matches the requirements, thanks.

JamesBremner commented 1 year ago

The island in region 93 is the first assigned group, even though it exceeds the specified maximum de sum

Sum -5 to 5, Min. Size 5
497 of 946 localities assigned to 87 groups.

============
84053 1.296293366 84097 2.231346688 84138 3.959005417 84150 1.158613508 sum 8.64526
============
04001 -3.801613008 04046 -1.377181693 04122 1.773550306 04070 8.017084361 04108 -1.327775998 sum 3.28406
...
JamesBremner commented 1 year ago

v0.0.10

JamesBremner commented 1 year ago

I will make the component handling optional, default off.

image

( Notice that while I was in the GUI code, I added the group sum target on the assumption that at some point you will decide to do this )

JamesBremner commented 1 year ago

v0.0.11