graphlib

utility visualization

graphlib is a JavaScript library for handling directed and undirected multi-graphs. This library is useful for visualizing complex network structures and implementing various graph theory algorithms.

Latest Ver 3.0.1
Homepage
Github
0
1,648
A Symphony of Data through Nodes and Edges
Express complex data structures simply and clearly with graphlib.
graphlib is a library suitable for visualizing complex network structures and implementing graph theory algorithms.
License: MIT
https://cdnjs.cloudflare.com/ajax/libs/graphlib/3.0.1/graphlib.core.js
https://cdnjs.cloudflare.com/ajax/libs/graphlib/3.0.1/graphlib.core.min.js
https://cdnjs.cloudflare.com/ajax/libs/graphlib/3.0.1/graphlib.js
https://cdnjs.cloudflare.com/ajax/libs/graphlib/3.0.1/graphlib.min.js

Sample Code

⚠️ Some code, including import statements, may not run properly on jsFiddle. If it fails to execute, please copy the code and try it in your own environment.
📄 HTML
<script>const Graph = graphlib.Graph; const g = new Graph(); g.setNode('A', {label: 'Node A'}); g.setNode('B', {label: 'Node B'}); g.setEdge('A', 'B', {type: 'Directed'}); console.log(g.nodes()); console.log(g.edges());</script>

⚙️ JavaScript
const Graph = graphlib.Graph; const g = new Graph(); g.setNode('A', {label: 'Node A'}); g.setNode('B', {label: 'Node B'}); g.setEdge('A', 'B', {type: 'Directed'}); console.log(g.nodes()); console.log(g.edges());
⚡ Top Tools for Developers
Text Compare

Text Comparison

Easily spot the differences between two texts.

Favicon Generator

Favicon Generator

Quickly and easily generate favicons.

Lorem Ipsum Generator

Lorem Ipsum Generator

Generate placeholder text for your designs.

Character Counter

Character Counter

Check character and word count in real time.

SRT ↔ SMI

SRT ↔ SMI Converter

Easily convert between subtitle formats.

Text Extract(OCR)

Image Text Extractor

Automatically extract text from images.