Oliver-BE / interactive-directed-graph-creator

A fully interactive web app for creating directed graphs using D3's force layout.

Home Page:https://oliver-be.ml/interactive-directed-graph-creator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interactive Directed Graph Creator

Functionality

  • Hold control and click anywhere empty to add a new node.

  • Click on a node and drag to create edges between nodes.

  • Click on nodes and edges to select and deselect them.

  • With an edge selected type "L", "R", or "B" to change if it points left, right, or in both directions.

  • With a node selected type "R" to make it reflexive.

  • With an edge or node selected press delete to remove them (deleting a node will remove its associated edges).

  • Hold shift and click on the nodes to drag them around.

  • The download button allows you to save all data from the created graph to a JSON file.

  • The garbage can button allows you to erase the graph you are working on.

Example

An example graph can be seen below: image

Demo

The live version of this can be found here.

For a demo with the ability to tweak the code, see either of the following two links:

About

A fully interactive web app for creating directed graphs using D3's force layout.

https://oliver-be.ml/interactive-directed-graph-creator/


Languages

Language:JavaScript 78.7%Language:HTML 16.1%Language:CSS 5.2%