JuliaGraphs / MetaGraphs.jl

Graph data structures with multiple heterogeneous metadata for Graphs.jl.
https://juliagraphs.org/MetaGraphs.jl/
Other
58 stars 8 forks source link

LightGraphs is not compatible anymore #34

Closed Codsilla closed 2 years ago

Codsilla commented 2 years ago

MetaGraphs was working with LightGraphs.jl before but this isn't the case anymore.

julia> using LightGraphs, MetaGraphs
julia> g = DiGraph(5)
julia> G = MetaDiGraph(g)
ERROR: MethodError: no method matching Graphs.SimpleGraphs.SimpleDiGraph(::SimpleDiGraph{Int64})
Closest candidates are:
  Graphs.SimpleGraphs.SimpleDiGraph() ...
simonschoelly commented 2 years ago

The code of LightGraphs.jl has moved to Graphs.jl, and the current versions of MetaGraphs also depend on Graphs.jl. You can just import Graphs instead of LightGraphs and everything should work as before.

Codsilla commented 2 years ago

Thank you for your quick and clear reply!