Skip to content

add a function assert_igraph()? #702

@maelle

Description

@maelle

This is a non-critical refactoring suggestion: adding a function that asserts whether something is an igraph object, and errors if not.

To replace lines such as

  if (!is_igraph(graph)) {
    stop("Not a graph object")
  }

and the ones that also first checks whether graph is NULL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upkeepmaintenance, infrastructure, and similar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions