Skip to content

[BUG] Error when running example code UndefVarError: libsgtsnepi not defined  #396

@NebulaComplex

Description

@NebulaComplex

Julia v1.10.4 on JupyterLab
SGtSNEpi v0.3.6

When I run the example code from https://juliagraphs.org/Graphs.jl/dev/first_steps/plotting/

using GLMakie, SGtSNEpi, SNAPDatasets
GLMakie.activate!()

g = loadsnap(:as_caida)
y = sgtsnepi(g)
show_embedding(y;
  A = adjacency_matrix(g),        # show edges on embedding
  mrk_size = 1,                   # control node sizes
  lwd_in = 0.01, lwd_out = 0.001, # control edge widths
  edge_alpha = 0.03               # control edge transparency
)

I get the error:

UndefVarError: libsgtsnepi not defined

Stacktrace:
[1] _sgtsnepi_c(P::SparseArrays.SparseMatrixCSC{Float64, Int64}, d::Int64, max_iter::Int64, early_exag::Int64, λ::Int64; Y0::Ptr{Nothing}, np::Int64, h::Float64, bb::Float64, eta::Float64, run_exact::Bool, fftw_single::Bool, alpha::Int64, profile::Bool, drop_leaf::Bool, list_grid_size::Vector{Int64}, par_scheme_grid_thres::Int64)
@ SGtSNEpi ~/.julia/packages/SGtSNEpi/aDIqm/src/sgtsne.jl:260
[2] sgtsnepi(A::SparseArrays.SparseMatrixCSC{Float64, Int64}; d::Int64, λ::Int64, max_iter::Int64, early_exag::Int64, Y0::Nothing, profile::Bool, np::Int64, version::SGtSNEpi.SGTSNEPI_VERSION, h::Float64, u::Int64, k::Int64, eta::Float64, alpha::Int64, fftw_single::Bool, exact::Bool, drop_leaf::Bool, list_grid_size::Vector{Int64}, bound_box::Float64, flag_unweighted_to_weighted::Bool, par_scheme_grid_thres::Int64)
@ SGtSNEpi ./array.jl:0
[3] sgtsnepi(A::SparseArrays.SparseMatrixCSC{Float64, Int64})
@ SGtSNEpi ~/.julia/packages/SGtSNEpi/aDIqm/src/sgtsne.jl:125
[4] sgtsnepi(G::Graphs.SimpleGraphs.SimpleGraph{Int64})
@ SGtSNEpi ~/.julia/packages/SGtSNEpi/aDIqm/src/sgtsne.jl:98
[5] top-level scope
@ In[2008]:4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions