dagre-compound
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

Dagre Compound

A multi-level compound graph layout library based on dagre.

📦 Installation

$ npm i dagre-compound

🔨 Usage

import { buildGraph, HierarchyGraphNodeInfo } from 'dagre-compound';

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);

Package Sidebar

Install

npm i dagre-compound

Weekly Downloads

48,053

Version

0.0.13

License

MIT

Unpacked Size

1.16 MB

Total Files

34

Last publish

Collaborators

  • hsuanlee
  • simplejason