update chapter 12

This commit is contained in:
Bogumił Kamiński
2022-02-14 17:51:24 +01:00
parent a7f0c90b46
commit 7c9789ad30

View File

@@ -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)