Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

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)