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

error: "as(<dsCMatrix>, "dgCMatrix") is deprecated ... " #582

Closed
stefpeschel opened this issue Sep 25, 2022 · 1 comment
Closed

error: "as(<dsCMatrix>, "dgCMatrix") is deprecated ... " #582

stefpeschel opened this issue Sep 25, 2022 · 1 comment

Comments

@stefpeschel
Copy link

Hi!

After updating the Matrix package to v1.5-1, calling igraph::as_adjacency_matrix() throws the message
as(<dsCMatrix>, "dgCMatrix") is deprecated since Matrix 1.5-0; do as(., "generalMatrix") instead.

as(<dsCMatrix>, "dgCMatrix") is called within the igraph-internal function get.adjacency.sparse().

Best,
Stefanie

@szhorvat
Copy link
Member

This is fixed in the recently released igraph 1.3.5:

> as_adjacency_matrix(sample_gnm(4,4))
4 x 4 sparse Matrix of class "dgCMatrix"
            
[1,] . 1 1 1
[2,] 1 . 1 .
[3,] 1 1 . .
[4,] 1 . . .

Please double-check that this is the version you are using, and if you still see problems, please post a minimum reproducible example.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants