Skip to main content
100%

Graph Editor

✓ Published0🌍 Public
TThanaporn-sk
Last edited Dec 31, 2016
Created on Dec 31, 2016

This graph editor visualizes small directed graphs as nodes and links in an SVG, using a force-directed layout to position them. It shows how nodes can be dragged to fix their positions and clicked to unfix them, with arrowheads indicating link direction. The code uses `d3.forceSimulation` for physics, `d3.drag` for interaction, and a marker definition for the arrowheads. It is built with D3 v4 and styled with a Roboto font.

AI-generated description

A tool for making diagrams of small directed graphs. This is a standalone version of an editor that reads graph files from a server - graph-diagrams. So far, this tool has been used to create the diagrams found in graph-data-structure and reactive-function.

Dragging nodes around will cause them to be fixed. Clicking on fixed nodes will unfix them.

Inspired by:

Built with blockbuilder.org

<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=2106505&f=16777215&b=0" border="0" height="18" width="83" alt="web counter"></a></div> <!-- End of SimpleHitCounter Code -->

forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/9b73eb564c1c8a3d8f3ab207de364bf4'>Graph Diagram Editor</a>

mit Licensed

Similar vizzes