JuliaGraphs / LightGraphsFlows.jl

Flow algorithms on LightGraphs
Other
36 stars 11 forks source link

Warnings in Julia v0.7 #18

Closed juliohm closed 5 years ago

juliohm commented 6 years ago

Hi, got these warnings on the master branch while trying to update a package that depends on LGFlows:

julia> using LightGraphsFlows
[ Info: Recompiling stale cache file /home/juliohm/.julia/compiled/v0.7/LightGraphsFlows/Iwpqk.ji for LightGraphsFlows [2f5eb75a-258c-59e0-affc-f41c55f75335]
┌ Warning: Deprecated syntax `parametric method syntax edmonds_karp_impl{T, ##380}(residual_graph::##380, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T})` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342.
│ Use `edmonds_karp_impl(residual_graph::##380, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}) where {T, ##380}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342
┌ Warning: Deprecated syntax `parametric method syntax edmonds_karp_impl{T, ##380}(::Type{lg.IsDirected{##380}}, residual_graph::##380, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}; )` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330.
│ Use `edmonds_karp_impl(#s15::Type{lg.IsDirected{##380}}, residual_graph::##380, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}; ) where {T, ##380}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330
┌ Warning: Deprecated syntax `parametric method syntax dinic_impl{T, ##386}(residual_graph::##386, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T})` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342.
│ Use `dinic_impl(residual_graph::##386, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}) where {T, ##386}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342
┌ Warning: Deprecated syntax `parametric method syntax dinic_impl{T, ##386}(::Type{lg.IsDirected{##386}}, residual_graph::##386, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}; )` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330.
│ Use `dinic_impl(#s19::Type{lg.IsDirected{##386}}, residual_graph::##386, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}; ) where {T, ##386}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330
┌ Warning: Deprecated syntax `parametric method syntax blocking_flow!{T, ##388}(residual_graph::##388, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}, flow_matrix::AbstractMatrix, P::AbstractVector{Int})` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342.
│ Use `blocking_flow!(residual_graph::##388, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}, flow_matrix::AbstractMatrix, P::AbstractVector{Int}) where {T, ##388}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342
┌ Warning: Deprecated syntax `parametric method syntax blocking_flow!{T, ##388}(::Type{lg.IsDirected{##388}}, residual_graph::##388, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}, flow_matrix::AbstractMatrix, P::AbstractVector{Int}; )` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330.
│ Use `blocking_flow!(#s19::Type{lg.IsDirected{##388}}, residual_graph::##388, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}, flow_matrix::AbstractMatrix, P::AbstractVector{Int}; ) where {T, ##388}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330
┌ Warning: Deprecated syntax `parametric method syntax boykov_kolmogorov_impl{T, U, AG <: lg.AbstractGraph{U}}(residual_graph::AG, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T})` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342.
│ Use `boykov_kolmogorov_impl(residual_graph::AG, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}) where {T, U, AG <: lg.AbstractGraph{U}}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342
┌ Warning: Deprecated syntax `parametric method syntax boykov_kolmogorov_impl{T, U, AG <: lg.AbstractGraph{U}}(::Type{lg.IsDirected{AG}}, residual_graph::AG, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}; )` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330.
│ Use `boykov_kolmogorov_impl(#s19::Type{lg.IsDirected{AG}}, residual_graph::AG, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}; ) where {T, U, AG <: lg.AbstractGraph{U}}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330
┌ Warning: Deprecated syntax `parametric method syntax find_path!{T, AG <: lg.AbstractGraph{T}}(residual_graph::AG, source::Integer, target::Integer, flow_matrix::AbstractMatrix, capacity_matrix::AbstractMatrix, PARENT::Vector, TREE::Vector, A::Vector)` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342.
│ Use `find_path!(residual_graph::AG, source::Integer, target::Integer, flow_matrix::AbstractMatrix, capacity_matrix::AbstractMatrix, PARENT::Vector, TREE::Vector, A::Vector) where {T, AG <: lg.AbstractGraph{T}}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342
┌ Warning: Deprecated syntax `parametric method syntax find_path!{T, AG <: lg.AbstractGraph{T}}(::Type{lg.IsDirected{AG}}, residual_graph::AG, source::Integer, target::Integer, flow_matrix::AbstractMatrix, capacity_matrix::AbstractMatrix, PARENT::Vector, TREE::Vector, A::Vector; )` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330.
│ Use `find_path!(#s19::Type{lg.IsDirected{AG}}, residual_graph::AG, source::Integer, target::Integer, flow_matrix::AbstractMatrix, capacity_matrix::AbstractMatrix, PARENT::Vector, TREE::Vector, A::Vector; ) where {T, AG <: lg.AbstractGraph{T}}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330
┌ Warning: Deprecated syntax `parametric method syntax adopt!{T, AG <: lg.AbstractGraph{T}}(residual_graph::AG, source::Integer, target::Integer, flow_matrix::AbstractMatrix, capacity_matrix::AbstractMatrix, PARENT::Vector, TREE::Vector, A::Vector, O::Vector)` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342.
│ Use `adopt!(residual_graph::AG, source::Integer, target::Integer, flow_matrix::AbstractMatrix, capacity_matrix::AbstractMatrix, PARENT::Vector, TREE::Vector, A::Vector, O::Vector) where {T, AG <: lg.AbstractGraph{T}}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342
┌ Warning: Deprecated syntax `parametric method syntax adopt!{T, AG <: lg.AbstractGraph{T}}(::Type{lg.IsDirected{AG}}, residual_graph::AG, source::Integer, target::Integer, flow_matrix::AbstractMatrix, capacity_matrix::AbstractMatrix, PARENT::Vector, TREE::Vector, A::Vector, O::Vector; )` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330.
│ Use `adopt!(#s25::Type{lg.IsDirected{AG}}, residual_graph::AG, source::Integer, target::Integer, flow_matrix::AbstractMatrix, capacity_matrix::AbstractMatrix, PARENT::Vector, TREE::Vector, A::Vector, O::Vector; ) where {T, AG <: lg.AbstractGraph{T}}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330
┌ Warning: Deprecated syntax `doc" "` at /home/juliohm/.julia/dev/LightGraphsFlows/src/push_relabel.jl:10.
│ Use `@doc doc" "` instead.
└ @ ~/.julia/dev/LightGraphsFlows/src/push_relabel.jl:10
┌ Warning: Deprecated syntax `multiple line breaks between doc string and object` at /home/juliohm/.julia/dev/LightGraphsFlows/src/push_relabel.jl:59.
│ Use `at most one line break` instead.
└ @ ~/.julia/dev/LightGraphsFlows/src/push_relabel.jl:59
WARNING: importing deprecated binding Base.@doc_str into LightGraphsFlows.
WARNING: Base.@doc_str is deprecated, use `Markdown` instead
  likely near /home/juliohm/.julia/dev/LightGraphsFlows/src/push_relabel.jl:1
┌ Warning: Deprecated syntax `parametric method syntax push_relabel{T, ##393}(residual_graph::##393, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T})` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342.
│ Use `push_relabel(residual_graph::##393, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}) where {T, ##393}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342
┌ Warning: Deprecated syntax `parametric method syntax push_relabel{T, ##393}(::Type{lg.IsDirected{##393}}, residual_graph::##393, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}; )` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330.
│ Use `push_relabel(#s25::Type{lg.IsDirected{##393}}, residual_graph::##393, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}; ) where {T, ##393}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330
┌ Warning: Deprecated syntax `multiple line breaks between doc string and object` at /home/juliohm/.julia/dev/LightGraphsFlows/src/ext_multiroute_flow.jl:17.
│ Use `at most one line break` instead.
└ @ ~/.julia/dev/LightGraphsFlows/src/ext_multiroute_flow.jl:17
┌ Warning: Deprecated syntax `doc" "` at /home/juliohm/.julia/dev/LightGraphsFlows/src/ext_multiroute_flow.jl:43.
│ Use `@doc doc" "` instead.
└ @ ~/.julia/dev/LightGraphsFlows/src/ext_multiroute_flow.jl:43
┌ Warning: Deprecated syntax `multiple line breaks between doc string and object` at /home/juliohm/.julia/dev/LightGraphsFlows/src/ext_multiroute_flow.jl:143.
│ Use `at most one line break` instead.
└ @ ~/.julia/dev/LightGraphsFlows/src/ext_multiroute_flow.jl:143
┌ Warning: Deprecated syntax `multiple line breaks between doc string and object` at /home/juliohm/.julia/dev/LightGraphsFlows/src/ext_multiroute_flow.jl:145.
│ Use `at most one line break` instead.
└ @ ~/.julia/dev/LightGraphsFlows/src/ext_multiroute_flow.jl:145
WARNING: Base.@doc_str is deprecated, use `Markdown` instead
  likely near /home/juliohm/.julia/dev/LightGraphsFlows/src/ext_multiroute_flow.jl:34
┌ Warning: Deprecated syntax `parametric method syntax breakingPoints{T, ##413}(flow_graph::##413, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T})` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342.
│ Use `breakingPoints(flow_graph::##413, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}) where {T, ##413}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:342
┌ Warning: Deprecated syntax `parametric method syntax breakingPoints{T, ##413}(::Type{lg.IsDirected{##413}}, flow_graph::##413, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}; )` around /home/juliohm/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330.
│ Use `breakingPoints(#s38::Type{lg.IsDirected{##413}}, flow_graph::##413, source::Integer, target::Integer, capacity_matrix::AbstractMatrix{T}; ) where {T, ##413}` instead.
└ @ ~/.julia/packages/SimpleTraits/CZOA/src/SimpleTraits.jl:330

Could you please take a look?

matbesancon commented 6 years ago

sorry about the delay, @simonschoelly is fixing it in #19

simonschoelly commented 5 years ago

I think this issue can be closed