Skip to content

Commit 582fa2d

Browse files
committed
Update documentation examples.
1 parent 8128b29 commit 582fa2d

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/OptimalTransportNetworks.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ a simplified interface and only exports key functions, while retaining full flex
5151
```julia
5252
# Convex case
5353
param = init_parameters(K = 10)
54-
param, graph = create_graph(param)
55-
param[:Zjn][61] = 10.0
54+
graph = create_graph(param)
55+
graph[:Zjn][61] = 10.0
5656
results = optimal_network(param, graph)
5757
plot_graph(graph, results[:Ijk])
5858
5959
# Nonconvex case, disabling automatic annealing
60-
param = init_parameters(K = 10, annealing = false, gamma = 2)
61-
param, graph = create_graph(param)
62-
param[:Zjn][61] = 10.0
60+
param = init_parameters(K = 10, gamma = 2, annealing = false)
61+
graph = create_graph(param)
62+
graph[:Zjn][61] = 10.0
6363
results = optimal_network(param, graph)
6464
6565
# Run annealing

src/main/plot_graph.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Plot a graph visualization with various styling options.
5050
# Examples
5151
```julia
5252
param = init_parameters(K = 10)
53-
param, graph = create_graph(param)
54-
param[:Zjn][51] = 10.0
53+
graph = create_graph(param)
54+
graph[:Zjn][51] = 10.0
5555
results = optimal_network(param, graph)
5656
plot_graph(graph, results[:Ijk])
5757
```

0 commit comments

Comments
 (0)