Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a detect_master_idx method. #112

Open
mitchmindtree opened this issue Jun 5, 2015 · 0 comments
Open

Add a detect_master_idx method. #112

mitchmindtree opened this issue Jun 5, 2015 · 0 comments

Comments

@mitchmindtree
Copy link
Member

This should detect the index of the master node by finding the only node that only has incoming connections and no outgoing connections.

One issue is that it is currently possible for there to be multiple Nodes with no outgoing connections - we might be able to fix this by tightening the method for adding nodes i.e. we could force a user to only be able to add Nodes as long as they connect to some pre-existing node within the graph. This might be too restrictive to be worth it though.

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

No branches or pull requests

1 participant