mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-07 18:25:19 +00:00
Add core.weights
and core.weightedGraph
to api (#1652)
This commit modifies the api declaration file so that it includes `core.weights` and `core.weightedGraph`. These are both important modules for interfacing with Cred (loading a WeightedGraph, and defining custom weights), so it's natural for them to be included in the API. Test plan: Change is a trivial extension of the pattern in api.js. `yarn flow` passes, and I believe no further testing is _required_; however, I will use this in an Observable notebook prior to merging.
This commit is contained in:
parent
8c47dd1c14
commit
579554d265
@ -12,6 +12,8 @@ import * as githubDeclaration from "../plugins/github/declaration";
|
|||||||
import * as githubEdges from "../plugins/github/edges";
|
import * as githubEdges from "../plugins/github/edges";
|
||||||
import * as githubNodes from "../plugins/github/nodes";
|
import * as githubNodes from "../plugins/github/nodes";
|
||||||
import * as graph from "../core/graph";
|
import * as graph from "../core/graph";
|
||||||
|
import * as weightedGraph from "../core/weightedGraph";
|
||||||
|
import * as weights from "../core/weights";
|
||||||
import * as graphToMarkovChain from "../core/algorithm/graphToMarkovChain";
|
import * as graphToMarkovChain from "../core/algorithm/graphToMarkovChain";
|
||||||
import * as markovChain from "../core/algorithm/markovChain";
|
import * as markovChain from "../core/algorithm/markovChain";
|
||||||
import * as timelineCred from "../analysis/timeline/timelineCred";
|
import * as timelineCred from "../analysis/timeline/timelineCred";
|
||||||
@ -29,6 +31,8 @@ export default deepFreeze({
|
|||||||
graphToMarkovChain,
|
graphToMarkovChain,
|
||||||
},
|
},
|
||||||
graph,
|
graph,
|
||||||
|
weightedGraph,
|
||||||
|
weights,
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
github: {
|
github: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user