You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
julia> grid
WARNING: both Plots and LightGraphs export "grid"; uses of it in module Main must be qualified
ERROR: UndefVarError: grid not defined
With Julia version 1.5.2 (2020-09-23) and the following packages.
(v1.5) pkg> status LightGraphs Plots
Status G:\G_Documents\.julia\environments\v1.5\Project.toml
[093fc24a] LightGraphs v1.3.5
[91a5bcdd] Plots v1.9.1
Not sure how to get around this safely. Sidenote: I think most of the graph constructors could probably get more descriptive function names, e.g. construct_grid_graph.
The text was updated successfully, but these errors were encountered:
Yes, and I can say that Plots.jl is the offender here. It currently exports a bunch of names it shouldn't such as Point, grid, ...
I would suggest opening an issue in Plots.jl asking them to stop reexporting these names. A plotting package should only export the minimum amount of names for the plotting commands, not the types used internally to implement these commands.
Gotcha, thanks for the practical advice (using LightGraphs.grid and Plots.grid) and information that this is common situation for lots of packages (and particularly over-exportation in Plots.jl).
Version 1.5.2 (2020-09-23)
With Julia version 1.5.2 (2020-09-23) and the following packages.
Not sure how to get around this safely. Sidenote: I think most of the graph constructors could probably get more descriptive function names, e.g.
construct_grid_graph
.The text was updated successfully, but these errors were encountered: