# @antv/graphlib

> @antv/graphlib

Latest version **2.0.4** (published 2024-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @antv/graphlib
pnpm add @antv/graphlib
yarn add @antv/graphlib
bun add @antv/graphlib
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

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

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2024-11-27 |
| First published | 2022-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 287 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 27 |
| Maintainers | lvisei, freestyle21, soundquiet, elaine.q.10, sturuby, sakuya223, serializedowen, xdzhao, yangzhanmei, wjgogogo, leungwensen, dori, iaaron, yard, simaq, dxq613, intchous, susan_ann, jinke.li, lzxue, army8735, atool, baizn, dengfuping, neoddish, jeffy2012, zqlu, afc163, pomelo-nwu, kopiluwaky, ccnuzindex, panyuqi, bubkoo, zengyue, kasmine, boyu.zlj, l1ud0ngq1, newbyvector, winniexing, chenluli, kn9117, xdddst, semious2020, esora, nadia_liu, bbsqq, mxz96102, openwayne, pearmini, pddpd, yiqianyao, zhanba, cxxxxxn, laixingui.lxg, susiwen8, yanxiong, zeyuwang, rainy25ghz, zhangjunjie-loki, flash1, yisi.wang, dreammy23, biupiubiupiu, basketduck, xuying1027, banxuan |

## Links

- npm: https://www.npmjs.com/package/@antv/graphlib
- Repository: https://github.com/antvis/graphlib
- Issues: https://github.com/antvis/graphlib/issues
- npm.io page: https://npm.io/package/@antv/graphlib

## Dependencies (1)

- [@antv/event-emitter](https://npm.io/package/@antv/event-emitter.md) ^0.1.3

## Recent versions

- 2.0.4 (latest) — 2024-11-27
- 2.0.0-alpha.3 (alpha) — 2023-02-03
- 2.0.3 — 2024-06-21
- 2.0.2 — 2023-06-27
- 2.0.1 — 2023-06-27
- 2.0.0 — 2023-02-09
- 2.0.0-alpha.2 — 2023-01-09
- 2.0.0-alpha.1 — 2023-01-05
- 2.0.0-alpha.0 — 2023-01-05
- 1.2.0 — 2022-04-24
- 1.1.0 — 2022-04-11
- 1.0.2 — 2022-03-21
- 1.0.0 — 2022-03-09

## README

<h1 align="center">
<b>@antv/graphlib</b>
</h1>

<div align="center">

> A library containing multible usages for graph structure, graph algorithm, and other graph ops.
>
> 一个包含方便的图结构，图算法，以及其他操作图的方法的图库，为 AntV 上层提供相应的图基础能力。

[![build](https://github.com/antvis/graphlib/actions/workflows/build.yml/badge.svg)](https://github.com/antvis/graphlib/actions/workflows/build.yml)
[![Coverage Status](https://coveralls.io/repos/github/antvis/graphlib/badge.svg?branch=master)](https://coveralls.io/github/antvis/graphlib?branch=master)
[![npm Version](https://img.shields.io/npm/v/@antv/graphlib.svg)](https://www.npmjs.com/package/@antv/graphlib)
[![npm Download](https://img.shields.io/npm/dm/@antv/graphlib.svg)](https://www.npmjs.com/package/@antv/graphlib)
[![npm License](https://img.shields.io/npm/l/@antv/graphlib.svg)](https://www.npmjs.com/package/@antv/graphlib)

</div>

## ✨ Features

- Manage graph structure data with simple APIs.
- Easily batch multiple changes for performance optimization.
- GraphView for efficient data transformation.

## 📖 API

### Classes

- [Graph](docs/classes/Graph.md)
- [GraphView](docs/classes/GraphView.md)

## 🗂 Change Log

#### 2.0.2

- feat: supports undefined parent as unsetting parent for setParent API;

#### 2.0

- 🎉 Release new version

## 📄 License

MIT@[AntV](https://github.com/antvis).

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