mvellandi

mvellandi

Exploring Graphs with Elixir: Missing directories (p 100, 105)

Exploring Graphs with Elixir by @tonyhammond

p.100 – Ch 3 > Storing Graphs in the Graph Store > Listing
shows

“iex>​​ ​​list_graphs​
​ 	[..., "default.dot", "IMAGES", ...]”

but (to my recollection) we have not defined this directory yet, either manually or automatically through the shell command in:
p.68 – Ch 2 > Building a Graph Store > Creating a Storage area

I see a reference to this “images” directory later, as a module attribute in NativeGraph.Format
So I manually created it.

Then in
p.105 – Ch 3 > Visualizing Graphs > Rendering with Graph Viz
while creating the water molecule graph, we’re given:

“iex>​​ ​​with​​ ​​{:ok,​​ ​​dot}​​ ​​=​​ ​​Graph.to_dot(g)​​ ​​do​
​ 	​...>​​ ​​write_graph(dot,​​ ​​"dot/h2o.dot"​​)​
​ 	​...>​​ ​​end”

When trying this, I get a File error since the “dot” directory is unavailable. Not sure what I’m missing here, or if the directory is supposed to be automatically created?
I manually created a “dot” directory to make the code work as shown and tested in later pages.

Marked As Solved

tonyhammond

tonyhammond

Author of Exploring Graphs with Elixir

Yes, this was not very clear. These directories are to be added manually.

I added this text on p. 29 in Chapter 2, Building a Graph Store, section Listing:

“And we’ll also want to be able to access graphs and queries within any directories that we may add manually to our store.”

And on p. 47 in Chapter 3. Managing Graphs Natively with Elixir:

“In this case we have manually added an images/ directory.”

And on p. 49:
“And for better graph management note that we’ve manually added the dot/ and images/ directories in our graph store:”

Also I hadn’t been consistent in writing dot files to the dot/ directory. Fixed that too.

Popular Pragmatic Bookshelf topics Top

sdmoralesma
Title: Web Development with Clojure, Third Edition - migrations/create not working: p159 When I execute the command: user=> (create-...
New
mikecargal
Title: Hands-On Rust (Chap 8 (Adding a Heads Up Display) It looks like ​.with_simple_console_no_bg​(SCREEN_WIDTH*2, SCREEN_HEIGHT*2...
New
JohnS
I can’t setup the Rails source code. This happens in a working directory containing multiple (postgres) Rails apps. With: ruby-3.0.0 s...
New
rmurray10127
Title: Intuitive Python: docker run… denied error (page 2) Attempted to run the docker command in both CLI and Powershell PS C:\Users\r...
New
swlaschin
The book has the same “Problem space/Solution space” diagram on page 18 as is on page 17. The correct Problem/Solution space diagrams ar...
New
leba0495
Hello! Thanks for the great book. I was attempting the Trie (chap 17) exercises and for number 4 the solution provided for the autocorre...
New
brian-m-ops
#book-python-testing-with-pytest-second-edition Hi. Thanks for writing the book. I am just learning so this might just of been an issue ...
New
taguniversalmachine
It seems the second code snippet is missing the code to set the current_user: current_user: Accounts.get_user_by_session_token(session["...
New
creminology
Skimming ahead, much of the following is explained in Chapter 3, but new readers (like me!) will hit a roadblock in Chapter 2 with their ...
New
gorkaio
root_layout: {PentoWeb.LayoutView, :root}, This results in the following following error: no “root” html template defined for PentoWeb...
New

Other popular topics Top

Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
New
AstonJ
You might be thinking we should just ask who’s not using VSCode :joy: however there are some new additions in the space that might give V...
New
AstonJ
Just done a fresh install of macOS Big Sur and on installing Erlang I am getting: asdf install erlang 23.1.2 Configure failed. checking ...
New
AstonJ
This looks like a stunning keycap set :orange_heart: A LEGENDARY KEYBOARD LIVES ON When you bought an Apple Macintosh computer in the e...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1139 25467 754
New
New
husaindevelop
Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
New
PragmaticBookshelf
Author Spotlight: Karl Stolley @karlstolley Logic! Rhetoric! Prag! Wow, what a combination. In this spotlight, we sit down with Karl ...
New
AnfaengerAlex
Hello, I’m a beginner in Android development and I’m facing an issue with my project setup. In my build.gradle.kts file, I have the foll...
New

Sub Categories: