Sponsor us and add your link here. Help this open-source site — with open traffic stats — stay alive.
Notesclub

Exploring Graphs with Elixir

chapter1.livemd

Exploring Graphs with Elixir

Coding a Hello World Graph

import :digraph

g = new()

v1 = add_vertex(g, "Hello")

v2 = add_vertex(g, "World")

get_path(g, v1, v2)

add_edge(g, v1, v2)

get_path(g, v1, v2)