Skip to content
Graphviz (DOT) templates

Undirected Graph

Simple math graph G=(V,E).

Template previewGraphviz (DOT)
G 1 1 2 2 1--2 3 3 1--3 2--3 5 5 2--5 4 4 3--4 4--5 5--1

What this template contains

Graph
Undirected
Edges
7
Source
4 lines

Make it your own.

graph G {
  layout=neato; overlap=false; node [shape=circle, style="filled", fillcolor="#fef3c7"];
  1 -- 2; 1 -- 3; 2 -- 3; 3 -- 4; 4 -- 5; 5 -- 1; 2 -- 5;
}