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

Multigraphs not supported because of dependency on as.matrix.network.adjacency in network package #50

Open
tedmoorman opened this issue Jun 22, 2022 · 3 comments

Comments

@tedmoorman
Copy link

I created a network with the network function from the network package:

network(..., multiple = TRUE)

Then I converted to a dynamic network using the networkDynamic function from the networkDynamic package. When I try to use compute.animation, filmstrip, and render.d3movie from the ndtv package, I receive the same error:

Error in as.matrix.network.adjacency(net, attrname = weight.attr, expand.bipartite = TRUE) :
      Multigraphs not currently supported in as.matrix.network.adjacency. Exiting.

You can see the error message on line 173 of the network package code. On line 168, the as.matrix.network.adjacency function is defined.

Is there a workaround for this error? Or, will this dependency might be eliminated in the future?

Thank you for taking a look.

@CarterButts
Copy link

CarterButts commented Jun 22, 2022 via email

@tedmoorman
Copy link
Author

I converted the network to a dynamic network object, and then I received the error. I think I found an example that provides a workaround, but the networkDynamic package is not recognizing one of my columns as numeric. I've submitted a separate issue here.

@tedmoorman
Copy link
Author

Update: I had to go the route of a network list to get everything to work for me. The example here was very helpful. I'm not sure if this is ideal though ...

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