Skip to content

Test if checking node out/in degree and searching the smaller of the edgetrees speeds up edge lookup. #625

@krivit

Description

@krivit

For a dyad (i,j) (directedness of the network irrelevant), we can check if an edge exists either by searching out-neighbours of i or in-neighbours of j. The size of the corresponding BST is the node's out- and in-degree, respectively. We can find which is smaller in constant time, so in principle, we could gain some performance by searching the end of the node with the smaller degree. I am not sure how much practical speed up there would be, however.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions