From 7c9789ad301fb6828ca45947107d43e7f982dee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Mon, 14 Feb 2022 17:51:24 +0100 Subject: [PATCH] update chapter 12 --- ch12.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ch12.jl b/ch12.jl index 23002c2..70f08de 100644 --- a/ch12.jl +++ b/ch12.jl @@ -93,12 +93,12 @@ df # Codes for section 12.2 -# Code from listing 12.4 +# Code for listing 12.4 using Graphs gh = SimpleGraph(nrow(classes_df)) -for (from, to) in eachrow(edges_df) - add_edge!(gh, from, to) +for (src, dst) in eachrow(edges_df) + add_edge!(gh, src, dst) end gh ne(gh)