Search⌘ K
AI Features

Generate Graphs

Explore how to generate connected random graphs using Elixir's libgraph by creating graph generators and managing test examples. Understand building edges and vertices, updating modules for graph creation, and generating sample graphs for practice.

Test examples

One of the challenges with testing data structures is to have a suitable number of test examples. We have two approaches to dealing with this:

  • Include a library with a large number of instances.

  • Provide a set of generator functions. ...