Skip to content

hergetto/kino_libgraph

Repository files navigation

KinoLibgraph

Docs build

Libgraph integration with Kino for Livebook using vis-network.

Installation

To use KinoLibgraph with Livebook, you only have to run Mix.install/2:

Mix.install([
  {:kino_libgraph, "~> 0.1.0"}
])

Example

directed_graph =
  Graph.new()
  |> Graph.add_edges([
    {:b, :c, weight: -2},
    {:a, :b, weight: 1},
    {:c, :d, weight: 3},
    {:b, :d, weight: 4}
  ])

Outputs:

Graph