Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
Graph.contract
for collapsing nodes together
This commit adds Graph.contract, which allows collapsing certain nodes in the graph into each other. This will enable the creation of a SourceCred "identity" plugin, allowing identity resolution between users different accounts on different services. Test plan: Thorough unit tests have been added. `yarn test` passes. Thanks to @wchargin for [review feedback][1] which significantly improved this API. [1]: #1380 (comment)
- Loading branch information
1 parent
c58315f
commit a93c5d3
Showing
2 changed files
with
106 additions
and
0 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