diff --git a/src/app/credExplorer/weights/weightsToEdgeEvaluator.js b/src/analysis/weightsToEdgeEvaluator.js similarity index 76% rename from src/app/credExplorer/weights/weightsToEdgeEvaluator.js rename to src/analysis/weightsToEdgeEvaluator.js index 2f211ca..9f3c602 100644 --- a/src/app/credExplorer/weights/weightsToEdgeEvaluator.js +++ b/src/analysis/weightsToEdgeEvaluator.js @@ -1,9 +1,9 @@ // @flow -import type {Edge} from "../../../core/graph"; -import type {WeightedTypes} from "../../../analysis/weights"; -import type {EdgeEvaluator} from "../../../analysis/pagerank"; -import {NodeTrie, EdgeTrie} from "../../../core/trie"; +import type {Edge} from "../core/graph"; +import type {WeightedTypes} from "./weights"; +import type {EdgeEvaluator} from "./pagerank"; +import {NodeTrie, EdgeTrie} from "../core/trie"; export function weightsToEdgeEvaluator(weights: WeightedTypes): EdgeEvaluator { const nodeTrie = new NodeTrie(); diff --git a/src/app/credExplorer/weights/weightsToEdgeEvaluator.test.js b/src/analysis/weightsToEdgeEvaluator.test.js similarity index 90% rename from src/app/credExplorer/weights/weightsToEdgeEvaluator.test.js rename to src/analysis/weightsToEdgeEvaluator.test.js index 016a02e..fb8d3f9 100644 --- a/src/app/credExplorer/weights/weightsToEdgeEvaluator.test.js +++ b/src/analysis/weightsToEdgeEvaluator.test.js @@ -1,19 +1,16 @@ // @flow -import * as NullUtil from "../../../util/null"; -import { - fallbackNodeType, - fallbackEdgeType, -} from "../../../analysis/fallbackDeclaration"; +import * as NullUtil from "../util/null"; +import {fallbackNodeType, fallbackEdgeType} from "./fallbackDeclaration"; import { inserterNodeType, machineNodeType, assemblesEdgeType, -} from "../../../plugins/demo/declaration"; -import {edges as factorioEdges} from "../../../plugins/demo/graph"; +} from "../plugins/demo/declaration"; +import {edges as factorioEdges} from "../plugins/demo/graph"; import {weightsToEdgeEvaluator} from "./weightsToEdgeEvaluator"; -describe("app/credExplorer/weights/weightsToEdgeEvaluator", () => { +describe("analysis/weightsToEdgeEvaluator", () => { describe("weightsToEdgeEvaluator", () => { type WeightArgs = {| +assemblesForward?: number, diff --git a/src/app/credExplorer/state.js b/src/app/credExplorer/state.js index 9728307..c0f0667 100644 --- a/src/app/credExplorer/state.js +++ b/src/app/credExplorer/state.js @@ -14,7 +14,7 @@ import { import {StaticAdapterSet, DynamicAdapterSet} from "../adapters/adapterSet"; import type {WeightedTypes} from "../../analysis/weights"; -import {weightsToEdgeEvaluator} from "./weights/weightsToEdgeEvaluator"; +import {weightsToEdgeEvaluator} from "../../analysis/weightsToEdgeEvaluator"; /* This models the UI states of the credExplorer/App as a state machine.