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

function name out_degree in tutorial should be fixed to outdegree #113

Closed
jipphysics opened this issue May 29, 2020 · 1 comment
Closed

Comments

@jipphysics
Copy link

jipphysics commented May 29, 2020

In the tutorial says

# nodes size proportional to their degree
nodesize = [LightGraphs.out_degree(g, v) for v in LightGraphs.vertices(g)]
gplot(g, nodesize=nodesize)

which in my installation returns

UndefVarError: out_degree not defined
Stacktrace:
 [1] (::getfield(Main, Symbol("##19#20")))(::Int64) at ./none:0
 [2] iterate at ./generator.jl:47 [inlined]
 [3] collect(::Base.Generator{Base.OneTo{Int64},getfield(Main, Symbol("##19#20"))}) at ./array.jl:619
 [4] top-level scope at In[91]:1

Changing "out_degree" by "outdegree" fixed the issue for me.

@hdavid16
Copy link
Contributor

This has been fixed. Issue should be closed.

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