Skip to content

Commit 7d1cf04

Browse files
InterdisciplinaryPhysicsTeampitmonticoneClaudMor
committed
Update index.md
Co-Authored-By: Pietro Monticone <[email protected]> Co-Authored-By: Claudio Moroni <[email protected]>
1 parent ad76d6a commit 7d1cf04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ add_edge!(layer_swg, src_w, dst_w, _weight)
574574
```
575575
where `_weight` is exactly what you would pass to the `add_edge!` method that acts on `SimpleWeightedGraph` after:
576576
```julia
577-
simpleweightedgraph = SimpleWeightedGraph(5, 0)
577+
simpleweightedgraph = SimpleWeightedGraph(SimpleGraph(5, 0))
578578
add_edge!(simpleweightedgraph, 1, 2, _weight)
579579
```
580580

0 commit comments

Comments
 (0)