/kino_libgraph

Libgraph integration with Livebook

Primary LanguageElixirApache License 2.0Apache-2.0

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