Skip to content
المشاريع

anvaka/graph-drawing-libraries

عرض على GitHub

حول

Trying to compare known graph drawing libraries

التصميم والوسائط

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+٦
خلال 15 يومًا
+٦
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

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 anvaka/VivaGraphJS apache/echarts cosmosgl/graph cytoscape/cytoscape.js d3/d3-force dagrejs/dagre dhotson/springy ecomfe/echarts-gl fkling/JSNetworkX GraphAlchemist/Alchemy jacomyal/sigma.js kieler/elkjs mdaines/viz-js memgraph/orb microsoft/msagljs samizdatco/arbor strathausen/dracula tgdwyer/WebCola vasturiano/3d-force-graph vasturiano/force-graph visjs/vis-network

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.json is the list of libraries on the website. example points to a folder in public/examples with 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.json holds GitHub statistics of these libraries. The deploy workflow runs on pushes to main and 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.js is 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.js downloads the files from the deployed demo and from its SuiteSparse mirror.
  • app/guard.js keeps 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 measure does 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 in data/measurements.json, the limits made from them in data/limits.json.
  • quality/ is the page about the quality of layouts. npm run quality makes 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 a 02.perf page returns to runSuite). app/layoutQuality.js turns positions into numbers: stress, crossings, the spread of link lengths, and how many neighbors a node keeps next to it. The numbers go to data/quality.json, the positions of the median run to public/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 src gets a preview: the preview workflow publishes it to https://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.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…