@nx-component/hierarchy-graph
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

Hierarchy Graph

English | 简体中文

🖥 Environment Support

  • dagre ^0.8.5 npm package

📦 Installation

$ npm i @nx-component/hierarchy-graph

🔨 Usage

import { buildGraph, HierarchyGraphNodeInfo } from '@nx-component/hierarchy-graph';

const data = {
    nodes: [
      { id: '0-1'},
      { id: '0-2'},
      { id: '1-1'},
      { id: '1-2'},
    ],
    edges: [
      { v: '0-1', w: '0-2' },
      { v: '0-2', w: '1-1' },
      { v: '1-1', w: '1-2' }
    ],
    compound: {
      GROUP0: ['0-1', '0-2']
    }
}
const renderInfo: HierarchyGraphNodeInfo = buildGraph(data);

Readme

Keywords

Package Sidebar

Install

npm i @nx-component/hierarchy-graph

Weekly Downloads

0

Version

0.0.10

License

MIT

Unpacked Size

190 kB

Total Files

14

Last publish

Collaborators

  • simplejason
  • vthinkxie