JGraphs

Instructions

- double click on canvas to add a new vertex
- double click on a vertex to delete or add an existing vertex
- vertices with no color are considered deleted
- vertices are draggable
- click on two vertices to add or delete an edge
- type "Kn" to draw a complete graph on n vertices
- type "Cn" to draw a cycle graph on n vertices
- type "Tn" to draw a trivial graph on n vertices
- type "Pn" to draw a path graph on n vertices
- type "toLatex" to export the graph to LaTeX via Tikz
- type "toSage" to export the graph to SageMath
- type "toM2" to export the graph to Macaulay2
- type "toR" to export the graph to R

Settings

vertex size:
edge width:
text size:

About

This is a simple web-app that allows to draw graphs and export them to sage primarily.

A video-tutorial can be found in Jgraphs tutorial in youtube.

If you would like to contribute by adding more funtionalities, please contact me: alfaromontufar.github.io

Input

Canvas

Output (this text area is not editable)

SageMath Cell

Link to Macaulay2