update chapter 12
This commit is contained in:
6
ch12.jl
6
ch12.jl
@@ -93,12 +93,12 @@ df
|
|||||||
|
|
||||||
# Codes for section 12.2
|
# Codes for section 12.2
|
||||||
|
|
||||||
# Code from listing 12.4
|
# Code for listing 12.4
|
||||||
|
|
||||||
using Graphs
|
using Graphs
|
||||||
gh = SimpleGraph(nrow(classes_df))
|
gh = SimpleGraph(nrow(classes_df))
|
||||||
for (from, to) in eachrow(edges_df)
|
for (src, dst) in eachrow(edges_df)
|
||||||
add_edge!(gh, from, to)
|
add_edge!(gh, src, dst)
|
||||||
end
|
end
|
||||||
gh
|
gh
|
||||||
ne(gh)
|
ne(gh)
|
||||||
|
|||||||
Reference in New Issue
Block a user