Skip to content

Commit

Permalink
update Dict syntax (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikiVanousek authored Nov 24, 2023
1 parent cc3052f commit da6f801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/first_steps/persistence.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ reloaded_g = loadgraph("mygraph.lg")
Finally, dictionaries of graphs can also be saved and subsequently re-loaded one by one.

```julia
graph_dict = {"g1" => erdos_renyi(5, 0.1),
graph_dict = Dict("g1" => erdos_renyi(5, 0.1),
"g2" => erdos_renyi(10, 0.2),
"g3" => erdos_renyi(2, 0.9)}
"g3" => erdos_renyi(2, 0.9))

savegraph("mygraph_dict.lg", graph_dict)

Expand Down

0 comments on commit da6f801

Please sign in to comment.