Test Macros
Explore how to use macros to write and serialize graphs in Elixir. Understand importing functions for seamless graph operations, techniques for listing files and directories related to graph data, and handling limitations in graph deserialization with libgraph. This lesson helps build practical skills in managing native graph structures efficiently.
Writing
Let's create a graph and write it using the macros we defined. We’ll import the functions we just added to the NativeGraph module so that we can drop the NativeGraph. prefix when calling these functions. If we want to persist this across IEx sessions, we can also add to our IEx config file .iex.exs, but we risk a conflict later when we come across other graph types, so we’ll need to be mindful to import the correct module for the ...