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

Conditional dependencies? #2

Closed
sbromberger opened this issue Oct 18, 2015 · 1 comment
Closed

Conditional dependencies? #2

sbromberger opened this issue Oct 18, 2015 · 1 comment

Comments

@sbromberger
Copy link
Contributor

It seems strange to REQUIRE LightGraphs and Graphs when in all likelihood people will want to use this great package for either one or the other. Could I recommend something along the lines of what we do in LightGraphs for conditional dependencies?

try
    using LightGraphs
    nothing
catch
end

then you can have

if isdefined(:LightGraphs)
...

for the LG specific code, repeating for Graphs.jl as necessary.

@afternone
Copy link
Contributor

Can we close this issue?

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