Code Monkey home page Code Monkey logo

graphlib's Introduction

@antv/graphlib

A library containing multible usages for graph structure, graph algorithm, and other graph ops.

一个包含方便的图结构,图算法,以及其他操作图的方法的图库,为 AntV 上层提供相应的图基础能力。

build Coverage Status npm Version npm Download npm License

✨ Features

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

📖 API

Classes

🗂 Change Log

2.0.2

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

2.0

  • 🎉 Release new version

📄 License

MIT@AntV.

graphlib's People

Contributors

hustcc avatar mxz96102 avatar yanyan-wang avatar yisiwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

graphlib's Issues

增加 silence 方式

[中级任务]

参考 batch 的方式,batch 是批量处理多个数据 API,只抛出一次 changes;silence 是处理数据后不抛出任何的 changes,两者都是对性能进行优化。

batch

Batch several graph changes into one. Make several changes, but dispatch only one ChangedEvent at the end of batch:

graph.batch(() => {
  graph.addNodes([]);
  graph.addEdges([]);
});

silence

DO NOT dispatch any changes.

graph.silence(() => {
  graph.addNodes([]);
  graph.addEdges([]);
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.