Skip to content

iosphere/elm-network-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 DOT language (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";
}

Example screenshot of a GraphViz export as SVG

Screenshot of a GraphViz export as SVG

Development

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

About

Network graphs with nodes and edges written in Elm.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published