@thi.ng/adjacency
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.11 • Public • Published

    adjacency

    npm version npm downloads Twitter Follow

    This project is part of the @thi.ng/umbrella monorepo.

    About

    Sparse & bitwise adjacency matrices and related functions for directed & undirected graphs.

    Status

    STABLE - used in production

    Search or submit any issues for this package

    Related packages

    • @thi.ng/dgraph - Type-agnostic directed acyclic graph (DAG) & graph operations

    Installation

    yarn add @thi.ng/adjacency

    ES module import:

    <script type="module" src="https://cdn.skypack.dev/@thi.ng/adjacency"></script>

    Skypack documentation

    For Node.js REPL:

    # with flag only for < v16
    node --experimental-repl-await
    
    > const adjacency = await import("@thi.ng/adjacency");
    

    Package sizes (gzipped, pre-treeshake): ESM: 2.42 KB

    Dependencies

    Usage examples

    Several demos in this repo's /examples directory are using this package.

    A selection:

    Screenshot Description Live demo Source
    Poisson-disk shape-aware sampling, Voronoi & Minimum Spanning Tree visualization Demo Source

    API

    Generated API docs

    TODO

    Authors

    Karsten Schmidt

    If this project contributes to an academic publication, please cite it as:

    @misc{thing-adjacency,
      title = "@thi.ng/adjacency",
      author = "Karsten Schmidt",
      note = "https://thi.ng/adjacency",
      year = 2018
    }

    License

    © 2018 - 2022 Karsten Schmidt // Apache Software License 2.0

    Install

    npm i @thi.ng/adjacency

    DownloadsWeekly Downloads

    132

    Version

    2.1.11

    License

    Apache-2.0

    Unpacked Size

    59.5 kB

    Total Files

    24

    Last publish

    Collaborators

    • thi.ng