Closed nrgapple closed 2 years ago
@ngrapple : wow, this was fast :-)
I've noticed you assing a color to each name which keeps colors identical for same countries throughout history; a great feature. Its only backdrop is taht it makes the graph coloring problem more difficult, I guess. Parhaps one could write a two-type constraint graph algorithm:
Beyond my mathematical / graph-theory skills at this point.
But the number of different colors could be reduced if you take the SUBJECTO
variable instead. It is now informed for every country, every year. If it is identical to NAME
, the country is independant. If it different to name, the country is a semi-autonomous region or a colony. This would also be semantically more accurate, imo. Using SUBJECTO
instead of NAME
makes the colonial history more readable (yes, I still need to harmonize this var for all of the British Empire... ):
Yeah so I am calculating on the first coordinate as well now but that might be a good solution as well!
@aourednik done! https://github.com/nrgapple/historic-country-borders-app/issues/16
based off this issue from @giosonego