proto-repl-charts.graph
Contains functions for converting a graphs into display data. Displayed graphs
are maps of nodes and edges. Nodes are maps with :id and :label. Edges are
maps of :from and :to.
graph
(graph name graph-data)
(graph name graph-data options)
Takes graph data representing nodes and edges and displays it in Atom using
vis.js. (http://http://visjs.org/).
Arguments:
* name - The name to put in the tab title. Will replace an existing tag with
the same name.
* graph-data - Can be a loom graph or a map containing a sequence of nodes and
edges. Nodes can be a sequence of identifiers (strings, numbers, keys) or
can be a map containing data matching description here:
http://visjs.org/docs/network/nodes.html. Edges can be a sequence of 2 item
sequences or maps containing any of the fields described here:
http://visjs.org/docs/network/edges.html
* options - Optional map of visjs network options. See http://visjs.org/docs/network/