Skip to content

Add a detect_master_idx method. #112

Open
@mitchmindtree

Description

@mitchmindtree

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions