
shotleybuilder
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!
First Post!

pragmoose
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
.
Popular Pragmatic Bookshelf topics










Other popular topics









Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /rails
- /js
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /java
- /haskell
- /emacs
- /svelte
- /onivim
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /ash
- /vscode
- /opensuse
- /centos
- /php
- /deepseek
- /html
- /scala
- /zig
- /debian
- /nixos
- /lisp
- /agda
- /sublime-text
- /react-native
- /textmate
- /kubuntu
- /arch-linux
- /revery
- /ubuntu
- /django
- /manjaro
- /spring
- /diversity
- /lua
- /nodejs
- /julia
- /slackware
- /c
- /neovim