8000 dfs - pass in node iterator function · Issue #62 · dagrejs/graphlib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
dfs - pass in node iterator function #62
Open
@arieljake

Description

@arieljake

the default behavior of pre/postorder is to accumulate the nodes in an array, but that is just one possible behavior that we could take when visiting each node. This could be a default iterator function that is passed into dfs if none other is provided. But, what if we allow the user to provide their own iterator function that is called when each node is visited?

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

      0