Skip to content

Latest commit

 

History

History

grid-graph

Grid Graph Example

This example shows how to draw a grid graph, defined by a set of vertices with integer coordinates, where edges usually connect all vertices at distance 1. However, to enable drawing specific paths (e.g. Hamiltonian paths/cycles), the edges are explicit in the ASCII input.

return path cross path
Return path figure Cross path figure
ASCII input, SVG output ASCII input, SVG output
  • These examples use flip_parity.js to flip the parity of the vertex coloring, to match the figure in the paper.

Hamiltonian cycle

Hamiltonian cycle figure

ASCII input, SVG output

Directed Hamiltonian cycle

  • Illustrating the use of svgtiler.def to instantiate <marker>.

Directed Hamiltonian cycle figure

ASCII input, SVG output

Underlying graph

Underlying graph figure

ASCII input, SVG output

Orthogonal graph layout

Orthogonal graph layout figure

ASCII input, SVG output