项目
在 GitHub 查看
anvaka/graph-drawing-libraries
关于
尝试比较已知的图绘制库
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- +6
- 15天
- +6
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文JavaScript Graph Drawing Libraries
This is a list of known graph drawing libraries. See a website with interactive data.
The same 10×10 grid, 10 seconds after each library started to draw it. Click a picture to run the demo:
- antvis/G6 - A Graph Visualization Framework in JavaScript.
- anvaka/VivaGraphJS - Graph drawing library for JavaScript
- apache/echarts - A powerful, interactive charting and data visualization library for browser
- cosmosgl/graph - GPU-accelerated force graph layout and rendering
- cytoscape/cytoscape.js - Graph theory (network) library for visualisation and analysis
- d3/d3-force - Force-directed graph layout using velocity Verlet integration.
- dagrejs/dagre - Directed graph layout for JavaScript
- dhotson/springy - A force directed graph layout algorithm in JavaScript
- ecomfe/echarts-gl - Extension pack for Apache ECharts; its graphGL series draws graphs with WebGL and lays them out on the GPU
- fkling/JSNetworkX - Build, process and analyze graphs in JavaScript (port of NetworkX)
- GraphAlchemist/Alchemy - a graph drawing application built in d3.
- jacomyal/sigma.js - A JavaScript library aimed at visualizing graphs of thousands of nodes and edges
- kieler/elkjs - ELK's layout algorithms for JavaScript
- mdaines/viz-js - Graphviz in your browser
- memgraph/orb - Graph visualization library
- microsoft/msagljs - A JavaScript graph layout engine: port of MSAGL
- samizdatco/arbor - a graph visualization library using web workers and jQuery
- strathausen/dracula - JavaScript layout and representation of connected graphs.
- tgdwyer/WebCola - Javascript constraint-based graph layout
- vasturiano/3d-force-graph - 3D force-directed graph component using ThreeJS/WebGL
- vasturiano/force-graph - Force-directed graph rendered on HTML5 canvas
- visjs/vis-network - Display dynamic, automatically organised, customizable network views.
If you find something missing, please let me know.
Commercial software
- Graphistry - GPU client+server accelerated, point-and-click filtering/histograms/timebars/coloring/clustering, language-neutral REST and JavaScript/React/Python embedding APIs, data science notebook support, all major browsers from last 5+ years + mobile
Video
NOTE: This video is outdated. Keeping it for historical reasons only
Side by side rendering of the grid graph by 12 libraries: https://www.youtube.com/watch?v=Ax7KSQZ0_hk
Website
The website lives in the src folder. It is a static Vite project with no backend:
cd src
npm install
npm run dev # local development server
npm run stats # refresh GitHub statistics in data/stats.json
npm run screenshots # retake the pictures of the libraries in this file and in the list of the website (needs Chrome)
npm run measure # measure how large a graph each library takes before it freezes the tab (needs Chrome)
npm run quality # measure how good the layouts of the libraries are (needs Chrome)
npm run quality:offline # the same for tools that are not on the list, see data/offline
npm test
npm run build # production version in src/dist
data/libraries.jsonis the list of libraries on the website.examplepoints to a folder inpublic/exampleswith a "hello world" demo (01.basic) and a performance test (02.perf).- "Run demo" in the list opens the performance test of a library (
performance/). The page lists the other libraries: each is a link that draws the same graph with that library. data/stats.jsonholds GitHub statistics of these libraries. The deploy workflow runs on pushes tomainand once a week: it fetches fresh statistics and publishes the website to GitHub Pages. The committed file is a snapshot for local development, and a fallback when GitHub API is not available.app/graphs.jsis the list of graphs that the performance test can render. They are the graphs of the ngraph.forcelayout demo under the same names, plus generators of a size that the visitor chooses. Nothing is copied here:app/loadGraph.jsdownloads the files from the deployed demo and from its SuiteSparse mirror.app/guard.jskeeps a slow library from freezing the tab without warning. The performance test asks before it starts a graph only when a freeze is likely: the library froze a tab on a graph this large when we measured it, or it froze the browser of the visitor before.npm run measuredoes the measurements. It gives every library square grids and graphs of the picker in a Chrome that is slowed down four times, and writes down the smallest graph that kept the tab silent for ten seconds: all runs are indata/measurements.json, the limits made from them indata/limits.json.quality/is the page about the quality of layouts.npm run qualitymakes its data: every library lays out six small graphs three times, and when a drawing stops changing, the positions of its nodes are read from the demo (the function that a02.perfpage returns torunSuite).app/layoutQuality.jsturns positions into numbers: stress, crossings, the spread of link lengths, and how many neighbors a node keeps next to it. The numbers go todata/quality.json, the positions of the median run topublic/quality, and the page draws its pictures from them. While a library works, its layout is measured four times a second: this gives the time after which the layout stayed as good as it ended.- data/offline has layouts of tools that are not on the list, because they do not run in a browser or we cannot keep a copy of them. They get the same numbers and pictures from the positions of their nodes alone.
- A pull request that changes
srcgets a preview: the preview workflow publishes it tohttps://anvaka.github.io/graph-drawing-libraries/pr-preview/pr-<number>/and posts the link to the pull request. Pull requests from forks have no previews.
Why?
This repository is inspired by @mbektimirov's question Difference with Sigma.js. I am trying to list all known graph drawing libraries, and inviting their authors to collaborate here.
探索相关项目
加载中…





















