From ee847e088757ca555bca8d0d2c470b012b548081 Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Fri, 10 Sep 2021 22:54:37 +0200 Subject: [PATCH] refactor(adjacency): update imports --- packages/adjacency/src/bfs.ts | 4 ++-- packages/adjacency/src/binary.ts | 2 +- packages/adjacency/src/dfs.ts | 4 ++-- packages/adjacency/src/disjoint-set.ts | 2 +- packages/adjacency/src/list.ts | 2 +- packages/adjacency/src/mst.ts | 2 +- packages/adjacency/src/sparse.ts | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/adjacency/src/bfs.ts b/packages/adjacency/src/bfs.ts index ea97b5875a..055aa59d02 100644 --- a/packages/adjacency/src/bfs.ts +++ b/packages/adjacency/src/bfs.ts @@ -1,5 +1,5 @@ -import { BitField } from "@thi.ng/bitfield"; -import { DCons } from "@thi.ng/dcons"; +import { BitField } from "@thi.ng/bitfield/bitfield"; +import { DCons } from "@thi.ng/dcons/dcons"; import type { CostFn, IGraph } from "./api"; export class BFS { diff --git a/packages/adjacency/src/binary.ts b/packages/adjacency/src/binary.ts index 348892458b..e07f4204aa 100644 --- a/packages/adjacency/src/binary.ts +++ b/packages/adjacency/src/binary.ts @@ -1,4 +1,4 @@ -import { BitMatrix } from "@thi.ng/bitfield"; +import { BitMatrix } from "@thi.ng/bitfield/bitmatrix"; import type { DegreeType, Edge, IGraph } from "./api"; import { into, invert, toDot } from "./utils"; diff --git a/packages/adjacency/src/dfs.ts b/packages/adjacency/src/dfs.ts index 279f816935..4376cf9954 100644 --- a/packages/adjacency/src/dfs.ts +++ b/packages/adjacency/src/dfs.ts @@ -1,5 +1,5 @@ -import { BitField } from "@thi.ng/bitfield"; -import { DCons } from "@thi.ng/dcons"; +import { BitField } from "@thi.ng/bitfield/bitfield"; +import { DCons } from "@thi.ng/dcons/dcons"; import type { IGraph } from "./api"; export class DFS { diff --git a/packages/adjacency/src/disjoint-set.ts b/packages/adjacency/src/disjoint-set.ts index 21c94d008b..36c4d95d6d 100644 --- a/packages/adjacency/src/disjoint-set.ts +++ b/packages/adjacency/src/disjoint-set.ts @@ -1,4 +1,4 @@ -import { fillRange } from "@thi.ng/arrays"; +import { fillRange } from "@thi.ng/arrays/fill-range"; /** * Typed array based Disjoint Set implementation with quick union and diff --git a/packages/adjacency/src/list.ts b/packages/adjacency/src/list.ts index 3fa462edc9..da5332f526 100644 --- a/packages/adjacency/src/list.ts +++ b/packages/adjacency/src/list.ts @@ -1,4 +1,4 @@ -import { DCons } from "@thi.ng/dcons"; +import { DCons } from "@thi.ng/dcons/dcons"; import type { DegreeType, Edge, IGraph } from "./api"; import { into, invert, toDot } from "./utils"; diff --git a/packages/adjacency/src/mst.ts b/packages/adjacency/src/mst.ts index 2543756c24..f50d6500ed 100644 --- a/packages/adjacency/src/mst.ts +++ b/packages/adjacency/src/mst.ts @@ -1,5 +1,5 @@ import type { Fn } from "@thi.ng/api"; -import { sortByCachedKey } from "@thi.ng/arrays"; +import { sortByCachedKey } from "@thi.ng/arrays/sort-cached"; import { DisjointSet } from "./disjoint-set"; /** diff --git a/packages/adjacency/src/sparse.ts b/packages/adjacency/src/sparse.ts index 0acb321b28..8e146398d7 100644 --- a/packages/adjacency/src/sparse.ts +++ b/packages/adjacency/src/sparse.ts @@ -1,5 +1,5 @@ -import { ensureIndex2 } from "@thi.ng/errors"; -import { CSR } from "@thi.ng/sparse"; +import { ensureIndex2 } from "@thi.ng/errors/out-of-bounds"; +import { CSR } from "@thi.ng/sparse/csr"; import type { DegreeType, Edge, IGraph } from "./api"; import { into, invert, toDot } from "./utils";