Skip to content

ggraph still fails on some graphs without edges #214

Closed

Description

@mschubert

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! 👍

Activity

  1. changed the title [-]ggraph still fails on graphs without edges[/-] [+]ggraph still fails on some graphs without edges[/+] on Oct 13, 2019
  2. added a commit that references this issue on Jun 23, 2025
    280d60b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions