Skip to contents

Coerce to a g6 element object

Usage

as_g6_node(x, ...)

# S3 method for class 'g6_node'
as_g6_node(x, ...)

# S3 method for class 'list'
as_g6_node(x, ...)

as_g6_edge(x, ...)

# S3 method for class 'g6_edge'
as_g6_edge(x, ...)

# S3 method for class 'list'
as_g6_edge(x, ...)

as_g6_combo(x, ...)

# S3 method for class 'g6_combo'
as_g6_combo(x, ...)

# S3 method for class 'list'
as_g6_combo(x, ...)

Arguments

x

An object to be coerced. List or g6 element are supported.

...

Additional arguments (unused).

Value

An element of class g6_node, g6_edge, or g6_combo.