GuyAllard / markov_clustering

markov clustering in python
MIT License
167 stars 37 forks source link

Support for soft clustering #16

Closed Moonire closed 1 year ago

Moonire commented 5 years ago

add's the option to keep overlapping nodes in the clustering or to delete their duplicates by setting keep_overlap either to True or False. Displaying a message informing the user that there are overlaps in case he is using the default hard clustering method.

GuyAllard commented 5 years ago

Hi Mounir, Thanks for submitting this PR.

I would like to approach this slightly differently to your implementation.

Specifically, I would like to perform the identification and removal of overlap nodes in a separate function which is called when keep_overlap=False Doing so will make the code easier to maintain and test.

What are your thoughts on this approach?

Moonire commented 5 years ago

It seems perfectly reasonable to me. In this case I think a ternary operator that will call the function when keep_overlap=False will do the trick. I'll take care of that asap.

Do you want to change the warning message ? I know i'm not good with writing warnings haha.

codykingham commented 7 months ago

It seems a fix for this was never implemented?