is_multigraph: Is this a multigraph?

Description Usage Arguments Value See Also Examples

View source: R/multigraphs.R

Description

A multigraph has at least one pair or multiple edges, edges connecting the same (ordered) pair of vertices.

Usage

1

Arguments

graph

Input graph.

Value

Logical scalar.

See Also

Other multigraphs: is_loopy, is_simple, remove_loops, remove_multiple, simplify

Examples

1
2
3
4
5
G <- graph(list(A = c("A", "B", "B"), B = c("A", "C"), C = "A"))
is_multigraph(G)

G2 <- simplify(G)
is_multigraph(G2)

MangoTheCat/simplegraph documentation built on May 7, 2019, 2:23 p.m.