rep.igraph: Replicate a graph multiple times

View source: R/operators.R

rep.igraphR Documentation

Replicate a graph multiple times

Description

The new graph will contain the input graph the given number of times, as unconnected components.

Usage

## S3 method for class 'igraph'
rep(x, n, mark = TRUE, ...)

## S3 method for class 'igraph'
x * n

Arguments

x

The input graph.

n

Number of times to replicate it.

mark

Whether to mark the vertices with a which attribute, an integer number denoting which replication the vertex is coming from.

...

Additional arguments to satisfy S3 requirements, currently ignored.

See Also

Other functions for manipulating graph structure: +.igraph(), add_edges(), add_vertices(), complementer(), compose(), connect(), contract(), delete_edges(), delete_vertices(), difference.igraph(), difference(), disjoint_union(), edge(), igraph-minus, intersection.igraph(), intersection(), path(), permute(), reverse_edges(), simplify(), union.igraph(), union(), vertex()

Other functions for manipulating graph structure: +.igraph(), add_edges(), add_vertices(), complementer(), compose(), connect(), contract(), delete_edges(), delete_vertices(), difference.igraph(), difference(), disjoint_union(), edge(), igraph-minus, intersection.igraph(), intersection(), path(), permute(), reverse_edges(), simplify(), union.igraph(), union(), vertex()

Examples

rings <- make_ring(5) * 5

igraph documentation built on Aug. 10, 2023, 9:08 a.m.