# @nx-component/hierarchy-graph

> English | [简体中文](./README-zh_CN.md)

Latest version **0.0.10** (published 2020-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nx-component/hierarchy-graph
pnpm add @nx-component/hierarchy-graph
yarn add @nx-component/hierarchy-graph
bun add @nx-component/hierarchy-graph
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2020-11-20 |
| First published | 2020-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=6.0.0 |
| Dependencies | 1 |
| Unpacked size | 185.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | NG-ZORRO Team |
| Maintainers | simplejason, vthinkxie |
| Keywords | graph, layout |

## Links

- npm: https://www.npmjs.com/package/@nx-component/hierarchy-graph
- npm.io page: https://npm.io/package/@nx-component/hierarchy-graph

## Dependencies (1)

- [dagre](https://npm.io/package/dagre.md) ^0.8.5

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 0.0.10 (latest) — 2020-11-20
- 0.0.9 — 2020-11-17
- 0.0.8 — 2020-11-17
- 0.0.7 — 2020-11-10

## README

# Hierarchy Graph

English | [简体中文](./README-zh_CN.md)

## 🖥 Environment Support

* dagre `^0.8.5` [![npm package](https://img.shields.io/npm/v/dagre.svg?style=flat-square)](https://www.npmjs.com/package/dagre)

## 📦 Installation
```bash
$ npm i @nx-component/hierarchy-graph
```

## 🔨 Usage
```ts
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);
```

---
_Source: https://npm.io/package/@nx-component/hierarchy-graph · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
