Directed Graph
Learn how to create a directed graph using the libgraph package.
We'll cover the following
Basic workout
Let’s first give the libgraph
package a simple workout.
As noted, the libgraph
package uses the Graph
module as its base namespace. This module defines a graph data structure, which supports directed and undirected graphs in both acyclic and cyclic forms. It also defines the API for creating, manipulating, and querying that structure.
Let's create a directed graph similar to our default graph.
Get hands-on with 1200+ tech skills courses.