-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ordering option to getPath (#19)
# Goals This adds support for depth first traversals to Dagula. It's designed to be in conformance with ipfs/specs#412. (will update if parameter names change) # Implementation - adds order parameter to options struct for getPath and get - renames breadFirstSearch to blockLinks (it isn't really "bread first search" so much as "all the links in this block"). - handles ordering change inside of `get`, using recursion for depth-first-search - adds tests for both orders. --------- Co-authored-by: Alan Shaw <alan.shaw@protocol.ai>
- Loading branch information
1 parent
ceca20a
commit ad25001
Showing
2 changed files
with
181 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters