# Digraphs

## Example

`graph = :digraph.new()`

```
vertex1 = :digraph.add_vertex(graph, "Node 1")
vertex2 = :digraph.add_vertex(graph, "Node 2")
vertex3 = :digraph.add_vertex(graph, "Node 3")
```

```
:digraph.add_edge(graph, vertex1, vertex2)
:digraph.add_edge(graph, vertex2, vertex3)
```

`graph`

`:digraph.vertices(graph)`

`:digraph.edges(graph)`

`:digraph.get_path(graph, vertex1, vertex3)`

`:digraph.get_path(graph, vertex1, vertex2)`

`:digraph.get_path(graph, vertex2, vertex3)`