4 <dt><a href="#Grafn">Grafn</a></dt>
11 <dt><a href="#tVertex">tVertex</a> : <code>object</code></dt>
12 <dd><p>The definition of a vertex that can be executed in the graph.</p>
19 **Kind**: global class
22 * [new Grafn()](#new_Grafn_new)
23 * [.run(vertexName)](#Grafn+run)
24 * [.vertex(vertex)](#Grafn+vertex)
25 * [.toString()](#Grafn+toString) ⇒ <code>string</code>
27 <a name="new_Grafn_new"></a>
30 Represents a graph of functions. You can call run on any specific vertex,
31 which will trigger execution of it and its dependencies.
33 It guarantees that each vertex will only run once.
35 It can be represented in graphviz format, highlighting fulfilled and
38 <a name="Grafn+run"></a>
40 ### grafn.run(vertexName)
41 Executes the named vertex and all its dependents
43 **Kind**: instance method of [<code>Grafn</code>](#Grafn)
46 - Will throw an error if a requested vertex does not exist
49 | Param | Type | Description |
51 | vertexName | <code>string</code> | the name of the vertex to run |
53 <a name="Grafn+vertex"></a>
55 ### grafn.vertex(vertex)
56 Adds a vertex to the graph.
58 **Kind**: instance method of [<code>Grafn</code>](#Grafn)
60 | Param | Type | Description |
62 | vertex | [<code>tVertex</code>](#tVertex) | the definition of the vertex to add |
64 <a name="Grafn+toString"></a>
66 ### grafn.toString() ⇒ <code>string</code>
67 Converts the graph to a graphviz digraph. If vertices have been executed,
68 they will be highlighted depending on whether they fulfilled or rejected.
70 **Kind**: instance method of [<code>Grafn</code>](#Grafn)
71 **Returns**: <code>string</code> - The graphviz digraph representation
72 <a name="tVertex"></a>
74 ## tVertex : <code>object</code>
75 The definition of a vertex that can be executed in the graph.
77 **Kind**: global typedef
80 | Name | Type | Default | Description |
81 | --- | --- | --- | --- |
82 | name | <code>string</code> | | The name of the vertex |
83 | [dependencies] | <code>Array.<string></code> | <code>[]</code> | The names of vertices that need to run before this one |
84 | action | <code>function</code> | | The action to execute |