-
Notifications
You must be signed in to change notification settings - Fork 2
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
JuliaGraphs_interop: try w/o MetaGraphsNext #35
Comments
It's not much extra load though:
|
https://juliagraphs.org/Graphs.jl/dev/first_steps/construction/ g = DiGraph()
# option 1
node_IDs = Dict(pkg => i for (i,pkg) in enumerate(packages))
node(pkg) = node_IDs[pkg]
# option 2
node(pkg) = findfirst(packages, pkg)
for (pkg, dep) in edges
add_edge!(g, node(pkg), node(dep))
end
…
for i in vertices(g)
pkg = packages[i]
… This is as clean (if not cleaner) and we spare a dep (0.45 second import time on computer; that's more on gh actions) |
(I don't get the point of MetaGraphs; if you can't even do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that
g[Symbol(a), Symbol(b)] = nothing
interface is kinda ewThe text was updated successfully, but these errors were encountered: