| is_multigraph {simplegraph} | R Documentation |
Is this a multigraph?
Description
A multigraph has at least one pair or multiple edges, edges connecting the same (ordered) pair of vertices.
Usage
is_multigraph(graph)
Arguments
graph |
Input graph. |
Value
Logical scalar.
See Also
Other multigraphs:
is_loopy(),
is_simple(),
remove_loops(),
remove_multiple(),
simplify()
Examples
G <- graph(list(A = c("A", "B", "B"), B = c("A", "C"), C = "A"))
is_multigraph(G)
G2 <- simplify(G)
is_multigraph(G2)
[Package simplegraph version 1.0.1 Index]