Skip to content
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

GraphPlot.jl Incompatibility #148

Open
andreaperin opened this issue Sep 26, 2022 · 0 comments
Open

GraphPlot.jl Incompatibility #148

andreaperin opened this issue Sep 26, 2022 · 0 comments

Comments

@andreaperin
Copy link

andreaperin commented Sep 26, 2022

Hi,

I am trying to run this simple code:

using BayesNets

CPDa = StaticCPD(:a, Normal(1.0))
CPDb = LinearGaussianCPD(:b, [:a], [2.0], 3.0, 1.0)
CPDb(:a => 0.5)
rand(CPDb, :a => 0.5) # condition and then sample
pdf(CPDb, :a => 4.0, :b => 3.0)

bn = BayesNet([CPDa, CPDb])

and I got this error:

ERROR: MethodError: no method matching stressmajorize_layout(::Graphs.WARNING: both ProbabilisticGraphicalModels and IterTools export "groupby"; uses of it in module BayesNets must be qualified
SimpleGraphs.SimpleDiGraph{Int64})
Closest candidates are:
  stressmajorize_layout(::LightGraphs.AbstractGraph) at ~/.julia/packages/GraphPlot/vrIy8/src/stress.jl:58
  stressmajorize_layout(::LightGraphs.AbstractGraph, ::Int64) at ~/.julia/packages/GraphPlot/vrIy8/src/stress.jl:58
  stressmajorize_layout(::LightGraphs.AbstractGraph, ::Int64, ::Any) at ~/.julia/packages/GraphPlot/vrIy8/src/stress.jl:58

Downgrading GrapPlot to 0.4.1 works, but is a very outdated version (more than 2 y.o.).

Graphplot is now at version 0.5.2 and since 0.4.4(allowed in your last version) migrates fromLightGraphs to Graphs. Maybe the usage of an outdated GraphPlot version could be the problem.

Best regards,

Andrea

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

1 participant