Libgraph integration with Kino for Livebook using vis-network.
To use KinoLibgraph with Livebook, you only have to run Mix.install/2
:
Mix.install([
{:kino_libgraph, "~> 0.1.0"}
])
directed_graph =
Graph.new()
|> Graph.add_edges([
{:b, :c, weight: -2},
{:a, :b, weight: 1},
{:c, :d, weight: 3},
{:b, :d, weight: 4}
])
Outputs: