Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Improve algorithm to find clusters #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SevereOverfl0w
Copy link

The problem with the current algorithm is that it presumes that all
clusters have children nodes, this works by recursively finding all the
parents of clusters until they "run out" (return nil).

As this is potentially expensive in large graphs, I re-use the result in
subsequent recursions.

The problem with the current algorithm is that it presumes that all
clusters have children nodes, this works by recursively finding all the
parents of clusters until they "run out" (return nil).

As this is potentially expensive in large graphs, I re-use the result in
subsequent recursions.
@SevereOverfl0w
Copy link
Author

I'm a little unsure about whether I can replace the cluster? code, as I couldn't infer it's purpose.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant