Code a “Hello World” Graph

Learn to create a basic “Hello World” graph using Erlang library digraph.

Elixir graph packages

As Elixir programmers, it’s only natural to wonder what kind of support Elixir has for working with graph technologies. Quite a bit as it turns out. We’ll see a growing number of Elixir graph packages that have been in active development for some time now. And these address all of the major graph types.

We’ll develop a project that will allow us to explore some of the main graph databases, graph query languages, and graph models. We’ll also look at interchanging between graph types and transforming from one type to another.

But let’s try first something out of the box—no setup required.

Elixir comes with built-in graph support. We can use the Erlang library :digraph that ships with the Elixir distribution. Let’s use this to string a couple of words together.

Steps to create the “Hello World” graph

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy