This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Network graphs with nodes and edges.
version 2.0.0
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 2.0.0
Committed At 2017-03-13 16:01:32 UTC
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1
elm-community/list-extra 6.0.0 <= v < 7.0.0 6.1.0
elm-community/json-extra 2.1.0 <= v < 3.0.0 2.7.0

README

Network graph written in elm

Travis.ci

A network graph consists of a list of nodes connected by edges.

Types

Graph

type alias Graph node =
    { edges : List Edge
    , nodes : List node
    }

A network graph consists of a list of nodes connected by edges.

The node type of the Graph is abstract to allow you to use records extending the type Node. Most functions provided by this work with Graph Node.

Output options

Two outputs are supported JSON or GraphViz:

digraph G { rankdir=TB
    "a" [shape=box style="bold, filled" fillColor="#ddd" label="a"];
    "b" [shape=box style="bold, filled" fillColor="#ddd" label="b"];
    "c" [shape=box style="bold, filled" fillColor="#ddd" label="c"];
    "a" -> "b";
    "b" -> "c";
    "c" -> "a";
}

Screenshot of a GraphViz export as SVG

Development

To install all tools and run elm-make: make build