diff --git a/src/app/credExplorer/App.js b/src/app/credExplorer/App.js index 8ed7770..8bb955a 100644 --- a/src/app/credExplorer/App.js +++ b/src/app/credExplorer/App.js @@ -10,6 +10,8 @@ import {Graph} from "../../core/graph"; import {pagerank, type PagerankResult} from "../../core/attribution/pagerank"; import {PagerankTable} from "./PagerankTable"; import type {PluginAdapter} from "../pluginAdapter"; +import {type EdgeEvaluator} from "../../core/attribution/pagerank"; +import {WeightConfig} from "./WeightConfig"; type Props = {}; type State = { @@ -24,6 +26,7 @@ type State = { |}, +pagerankResult: ?PagerankResult, |}, + edgeEvaluator: ?EdgeEvaluator, }; const REPO_OWNER_KEY = "repoOwner"; @@ -36,6 +39,7 @@ export default class App extends React.Component { repoOwner: "", repoName: "", data: {graphWithMetadata: null, pagerankResult: null}, + edgeEvaluator: null, }; } @@ -47,6 +51,7 @@ export default class App extends React.Component { } render() { + const {edgeEvaluator} = this.state; const {graphWithMetadata, pagerankResult} = this.state.data; return (
@@ -82,20 +87,14 @@ export default class App extends React.Component {