is_loopy: Is this a loopy graph?

Description Usage Arguments Value See Also Examples

View source: R/multigraphs.R

Description

A loopy graph has at least one loop edge: an edge from a vertex to itself.

Usage

1

Arguments

graph

The input graph.

Value

Logical scalar.

See Also

Other multigraphs: is_multigraph, 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_loopy(G)

G2 <- simplify(G)
is_loopy(G2)

MangoTheCat/simplegraph documentation built on May 9, 2017, 7:27 a.m.