Brackets on structures Julia

what means this brackets on struct?:

struct Graph{T}
    adjacency_lists :: Dict{T, Set{T}}
    edge_weights :: Dict{Tuple{T, T}, Float64}
end

The bracketed T is a parametrized type. E.g. the Graph type can be a Graph{Int64} or Graph{Float64} or whatever. See Types · The Julia Language

1 Like