pipe: Magrittr's pipes

Description Arguments Value Examples

Description

igraph re-exports the %>% operator of magrittr, because we find it very useful. Please see the documentation in the magrittr package.

Arguments

lhs

Left hand side of the pipe.

rhs

Right hand side of the pipe.

Value

Result of applying the right hand side to the result of the left hand side.

Examples

1
2
3
make_ring(10) %>%
  add_edges(c(1,6)) %>%
  plot()

Example output

Attaching package:igraphThe following objects are masked frompackage:stats:

    decompose, spectrum

The following object is masked frompackage:base:

    union

igraph documentation built on Jan. 5, 2022, 1:09 a.m.

Related to pipe in igraph...