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

ggraph still fails on some graphs without edges #214

Closed
mschubert opened this issue Oct 13, 2019 · 0 comments
Closed

ggraph still fails on some graphs without edges #214

mschubert opened this issue Oct 13, 2019 · 0 comments

Comments

@mschubert
Copy link

Related: #76, #82 (edge df also has 0 rows); #177 (same error message but different cause)

If I try the following code (updated CRAN and git HEAD for ggraph):

g = structure(list(1, TRUE, numeric(0), numeric(0), numeric(0), numeric(0),
   c(0, 0), c(0, 0), list(c(1, 0, 1), structure(list(), .Names = character(0)),
        list(name = "test"),
        list(dip_url = character(0), sources = list(), nrefs = integer(0)))),
   class = c("tbl_graph", "igraph"), active = "nodes")

ggraph(g)

I get the error:

Error: All columns in a tibble must be 1d or 2d objects:

  • Column dip_url is NULL
  • Column sources is NULL

Great package btw, it makes working with graphs so much easier! 👍

@mschubert mschubert changed the title ggraph still fails on graphs without edges ggraph still fails on some graphs without edges Oct 13, 2019
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

1 participant