Skip to content

Commit 0d49675

Browse files
InterdisciplinaryPhysicsTeamClaudMorpitmonticone
committed
Update .JuliaFormatter.jl and format everything
Co-Authored-By: Claudio Moroni <[email protected]> Co-Authored-By: Pietro Monticone <[email protected]>
1 parent e9bd543 commit 0d49675

File tree

8 files changed

+179
-139
lines changed

8 files changed

+179
-139
lines changed

.JuliaFormatter.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ Pkg.add("JuliaFormatter") # Install JuliaFormatter
33

44
using JuliaFormatter # Load JuliaFormatter
55
format("."; verbose=true) # Format all files
6+
7+
Pkg.rm("JuliaFormatter") # Remove JuliaFormatter

docs/make.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ makedocs(;
1919
canonical="https://juliagraphs.org/MultilayerGraphs.jl",
2020
assets=String[],
2121
),
22-
pages=["🏠 Home" => "index.md",
23-
"🛠 API" => "API.md"],
22+
pages=["🏠 Home" => "index.md", "🛠 API" => "API.md"],
2423
clean=false,
2524
)
2625

docs/src/tutorial.jl

Lines changed: 171 additions & 122 deletions
Large diffs are not rendered by default.

src/directed.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Return an list of all the edges of `mg`.
148148
"""
149149
@traitfn function Graphs.edges(
150150
mg::M
151-
) where {T,U,M<:AbstractMultilayerGraph{T,U}; IsDirected{M}}
151+
) where {T,U,M<:AbstractMultilayerGraph{T,U};IsDirected{M}}
152152
edge_list = MultilayerEdge{U}[]
153153

154154
for (_src_v, halfedges) in enumerate(mg.fadjlist)

src/multilayerdigraph.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,7 @@ function add_layer!(
307307
default_interlayers_null_graph::H=SimpleDiGraph{T}(),
308308
default_interlayers_structure::String="multiplex",
309309
) where {
310-
T,
311-
U,
312-
G<:AbstractGraph{T},
313-
L<:Layer{T,U,G},
314-
H<:AbstractGraph{T},
315-
M<:MultilayerDiGraph{T,U}
310+
T,U,G<:AbstractGraph{T},L<:Layer{T,U,G},H<:AbstractGraph{T},M<:MultilayerDiGraph{T,U}
316311
}
317312
return add_layer_directedness!(
318313
mg,

src/multilayergraph.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,7 @@ function add_layer!(
288288
default_interlayers_null_graph::H=SimpleGraph{T}(),
289289
default_interlayers_structure::String="multiplex",
290290
) where {
291-
T,
292-
U,
293-
G<:AbstractGraph{T},
294-
L<:Layer{T,U,G},
295-
H<:AbstractGraph{T},
296-
M<:MultilayerGraph{T,U}
291+
T,U,G<:AbstractGraph{T},L<:Layer{T,U,G},H<:AbstractGraph{T},M<:MultilayerGraph{T,U}
297292
}
298293
return add_layer_directedness!(
299294
mg,

src/special_multilayergraphs/node_aligned_edge_colored/node_aligned_edge_colored_di_graph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A concrete type that can represent a general directed edge colored graph, that i
1010
Its internal fields aren't meant to be modified by the user. Please prefer the provided API.
1111
"""
1212
mutable struct NodeAlignedEdgeColoredDiGraph{T,U} <:
13-
AbstractNodeAlignedEdgeColoredGraph{T,U}
13+
AbstractNodeAlignedEdgeColoredGraph{T,U}
1414
layers::Vector{LayerDescriptor{T,U}} # vector containing all the layers of the multilayer graph. Their underlying graphs must be all undirected.
1515
interlayers::OrderedDict{Set{Symbol},InterlayerDescriptor{T,U}} # the ordered dictionary containing all the interlayers of the multilayer graph. Their underlying graphs must be all undirected.
1616
v_V_associations::Bijection{T,<:MultilayerVertex} # A Bijection from Bijections.jl that associates numeric vertices to `MultilayerVertex`s.

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ all_interlayers = [
491491
@testset "interlayer" begin
492492
include("interlayer.jl")
493493
end
494-
494+
495495
@testset "undirected" begin
496496
include("undirected.jl")
497497
end

0 commit comments

Comments
 (0)