Skip to content

LightGraphs is not compatible anymore #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Codsilla opened this issue Jan 25, 2022 · 2 comments
Closed

LightGraphs is not compatible anymore #34

Codsilla opened this issue Jan 25, 2022 · 2 comments

Comments

@Codsilla
Copy link

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
Copy link
Member

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
Copy link
Author

Thank you for your quick and clear reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants