Closed tfburns closed 2 years ago
This is a common(ish) situation for lots of packages. The message is just a warning, and it only appears when you call the unqualified function.
To use LG's grid
function, just qualify it: LightGraphs.grid(...)
. To use Plots, use Plots.grid(...)
.
We will not be renaming functions to accommodate other packages.
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
.