Exploring Graphs with Elixir: suggestion: have complete code available for download p45

When I run NativeGraph.[TAB] my output is:

MixProject hello/0 read_graph/1 write_graph/2

Which is because most of the functions are not defined in the macro. And in fact my query.ex doesn’t even include e.g. list_queries/1 to make available.

The code to make this work in full isn’t present in the download.

I’d suggest making the complete code available for download so at least I can copy (cheat) and get the same output as the book.

NB Not sure where that MixProject came from!

I got stuck here too. I was able to implement most of them, but I’m confused by new_graph/1.

I assume that new_graph/2 is a straightforward wrapper around GraphCommons.Graph.new. I would guess that new_graph/1 is derived from new_graph/2 via some default value for one of the arguments of GraphCommons.Graph.new, but it has no default values.

Re your NB, the MixProject module is defined in apps/native_graph/mix.exs, which was generated by
$ mix new native_graph.