Skip to content

Commit

Permalink
Update tutorial on adding edges
Browse files Browse the repository at this point in the history
  • Loading branch information
bin-wang committed Jul 12, 2024
1 parent d2062f3 commit 2587b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tutorial/1_basics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ colors[:blue] = (0, 0, 255);

# ### Edges

# Use `setindex!` with two keys to add a new edge between the given labels and containing the given metadata. Beware that this time, nonexistent labels will throw an error.
# Use `setindex!` with two keys to add a new edge between the given labels and containing the given metadata. Beware that this time, an edge will be added only when both node labels already exist in the graph.

colors[:red, :green] = :yellow;
colors[:red, :blue] = :magenta;
Expand Down

0 comments on commit 2587b6b

Please sign in to comment.