Skip to content

Commit 2011e0d

Browse files
pgrepdsgdalle
andauthored
fix doctests (#239)
* fix doctests * Trigger CI * Merge master and update docs env --------- Co-authored-by: Guillaume Dalle <[email protected]>
1 parent 5649092 commit 2011e0d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+456
-157
lines changed

docs/Manifest.toml

Lines changed: 80 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# This file is machine-generated - editing it directly is not advised
22

3-
julia_version = "1.8.2"
3+
julia_version = "1.9.0-rc2"
44
manifest_format = "2.0"
55
project_hash = "4fb688147559360c201b0f727fe4bd07d6143f40"
66

7+
[[deps.ArgTools]]
8+
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
9+
version = "1.1.1"
10+
711
[[deps.ArnoldiMethod]]
812
deps = ["LinearAlgebra", "Random", "StaticArrays"]
913
git-tree-sha1 = "62e51b39331de8911e4a7ff6f5aaf38a5f4cc0ae"
@@ -25,7 +29,7 @@ version = "4.4.0"
2529
[[deps.CompilerSupportLibraries_jll]]
2630
deps = ["Artifacts", "Libdl"]
2731
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
28-
version = "0.5.2+0"
32+
version = "1.0.2+0"
2933

3034
[[deps.DataStructures]]
3135
deps = ["Compat", "InteractiveUtils", "OrderedCollections"]
@@ -53,11 +57,19 @@ git-tree-sha1 = "3ebb967819b284dc1e3c0422229b58a40a255649"
5357
uuid = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
5458
version = "0.26.3"
5559

60+
[[deps.Downloads]]
61+
deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"]
62+
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
63+
version = "1.6.0"
64+
65+
[[deps.FileWatching]]
66+
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
67+
5668
[[deps.Graphs]]
5769
deps = ["ArnoldiMethod", "Compat", "DataStructures", "Distributed", "Inflate", "LinearAlgebra", "Random", "SharedArrays", "SimpleTraits", "SparseArrays", "Statistics"]
5870
path = ".."
5971
uuid = "86223c79-3864-5bf0-83f7-82e725a168b6"
60-
version = "1.7.4"
72+
version = "1.8.0"
6173

6274
[[deps.IOCapture]]
6375
deps = ["Logging"]
@@ -80,15 +92,30 @@ git-tree-sha1 = "3c837543ddb02250ef42f4738347454f95079d4e"
8092
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
8193
version = "0.21.3"
8294

95+
[[deps.LibCURL]]
96+
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
97+
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
98+
version = "0.6.3"
99+
100+
[[deps.LibCURL_jll]]
101+
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"]
102+
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
103+
version = "7.84.0+0"
104+
83105
[[deps.LibGit2]]
84106
deps = ["Base64", "NetworkOptions", "Printf", "SHA"]
85107
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
86108

109+
[[deps.LibSSH2_jll]]
110+
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
111+
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
112+
version = "1.10.2+0"
113+
87114
[[deps.Libdl]]
88115
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
89116

90117
[[deps.LinearAlgebra]]
91-
deps = ["Libdl", "libblastrampoline_jll"]
118+
deps = ["Libdl", "OpenBLAS_jll", "libblastrampoline_jll"]
92119
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
93120

94121
[[deps.Logging]]
@@ -104,17 +131,26 @@ version = "0.5.10"
104131
deps = ["Base64"]
105132
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
106133

134+
[[deps.MbedTLS_jll]]
135+
deps = ["Artifacts", "Libdl"]
136+
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
137+
version = "2.28.2+0"
138+
107139
[[deps.Mmap]]
108140
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
109141

142+
[[deps.MozillaCACerts_jll]]
143+
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
144+
version = "2022.10.11"
145+
110146
[[deps.NetworkOptions]]
111147
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
112148
version = "1.2.0"
113149

114150
[[deps.OpenBLAS_jll]]
115151
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"]
116152
uuid = "4536629a-c528-5b80-bd46-f80d51c5b363"
117-
version = "0.3.20+0"
153+
version = "0.3.21+4"
118154

119155
[[deps.OrderedCollections]]
120156
git-tree-sha1 = "85f8e6578bf1f9ee0d11e7bb1b1456435479d47c"
@@ -127,6 +163,11 @@ git-tree-sha1 = "b64719e8b4504983c7fca6cc9db3ebc8acc2a4d6"
127163
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
128164
version = "2.5.1"
129165

166+
[[deps.Pkg]]
167+
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
168+
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
169+
version = "1.9.0"
170+
130171
[[deps.Printf]]
131172
deps = ["Unicode"]
132173
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
@@ -165,7 +206,7 @@ version = "1.0.1"
165206
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
166207

167208
[[deps.SparseArrays]]
168-
deps = ["LinearAlgebra", "Random"]
209+
deps = ["Libdl", "LinearAlgebra", "Random", "Serialization", "SuiteSparse_jll"]
169210
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
170211

171212
[[deps.StaticArrays]]
@@ -182,6 +223,22 @@ version = "1.4.0"
182223
[[deps.Statistics]]
183224
deps = ["LinearAlgebra", "SparseArrays"]
184225
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
226+
version = "1.9.0"
227+
228+
[[deps.SuiteSparse_jll]]
229+
deps = ["Artifacts", "Libdl", "Pkg", "libblastrampoline_jll"]
230+
uuid = "bea87d4a-7f5b-5778-9afe-8cc45184846c"
231+
version = "5.10.1+6"
232+
233+
[[deps.TOML]]
234+
deps = ["Dates"]
235+
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
236+
version = "1.0.3"
237+
238+
[[deps.Tar]]
239+
deps = ["ArgTools", "SHA"]
240+
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
241+
version = "1.10.0"
185242

186243
[[deps.Test]]
187244
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
@@ -194,7 +251,22 @@ uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
194251
[[deps.Unicode]]
195252
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
196253

254+
[[deps.Zlib_jll]]
255+
deps = ["Libdl"]
256+
uuid = "83775a58-1f1d-513f-b197-d71354ab007a"
257+
version = "1.2.13+0"
258+
197259
[[deps.libblastrampoline_jll]]
198-
deps = ["Artifacts", "Libdl", "OpenBLAS_jll"]
260+
deps = ["Artifacts", "Libdl"]
199261
uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
200-
version = "5.1.1+0"
262+
version = "5.4.0+0"
263+
264+
[[deps.nghttp2_jll]]
265+
deps = ["Artifacts", "Libdl"]
266+
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"
267+
version = "1.48.0+0"
268+
269+
[[deps.p7zip_jll]]
270+
deps = ["Artifacts", "Libdl"]
271+
uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"
272+
version = "17.4.0+0"

src/Experimental/ShortestPaths/ShortestPaths.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ algorithm `alg` (one of [`BellmanFord`](@ref) or [`SPFA`](@ref)), return
181181
`true` if any cycle detected in the graph has a negative weight.
182182
# Examples
183183
184-
```jldoctest
184+
```
185+
julia> using Graphs
186+
185187
julia> g = complete_graph(3);
186188
187189
julia> d = [1 -3 1; -3 1 1; 1 1 1];

src/Experimental/ShortestPaths/spfa.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ end
8080
Function which returns true if there is any negative weight cycle in the graph.
8181
# Examples
8282
83-
```jldoctest
83+
```
84+
julia> using Graphs
85+
8486
julia> g = complete_graph(3);
8587
8688
julia> d = [1 -3 1; -3 1 1; 1 1 1];

src/SimpleGraphs/generators/euclideangraphs.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ and return a Euclidean graph, a map containing the distance on each edge and
66
a matrix with the points' positions.
77
88
## Examples
9-
```jldoctest
9+
```
10+
julia> using Graphs
11+
1012
julia> g, dists = euclidean_graph(5, 2, cutoff=0.3);
1113
1214
julia> g
@@ -52,7 +54,9 @@ For `p=2` we have the standard Euclidean distance.
5254
Set `bc=:periodic` to impose periodic boundary conditions in the box ``[0,L]^d``.
5355
5456
## Examples
55-
```jldoctest
57+
```
58+
julia> using Graphs
59+
5660
julia> pts = rand(3, 10); # 10 vertices in R^3
5761
5862
julia> g, dists = euclidean_graph(pts, p=1, bc=:periodic) # Taxicab-distance (L^1);

0 commit comments

Comments
 (0)