greedy has been included in
mapclassify and is no longer supported and developed as an independent package.
greedy module in
from mapclassify import greedy gdf['colors'] = greedy(gdf)
Greedy (topological) coloring for GeoPandas
greedy is a Python package which brings topological (greedy) coloring to GeoPandas.
It offers several coloring strategies, all accessible using one line of code:
gdf['colors'] = greedy(gdf)
greedy is available at martinfleis.github.io/greedy.
You can install
momepy using Conda from
conda install -c conda-forge greedy
or from PyPI using
pip install greedy
See the installation instructions for detailed instructions.
Copyright (c) 2017 - 2019 Martin Fleischmann, Nyall Dawson