Skip to contents

Construtor modifier to remove all attributes from a graph

Usage

without_attr()

See also

Other constructor modifiers: simplified(), with_edge_(), with_graph_(), with_vertex_(), without_loops(), without_multiples()

Examples

g1 <- make_ring(10)
g1
#> IGRAPH 8dcf367 U--- 10 10 -- Ring graph
#> + attr: name (g/c), mutual (g/l), circular (g/l)
#> + edges from 8dcf367:
#>  [1] 1-- 2 2-- 3 3-- 4 4-- 5 5-- 6 6-- 7 7-- 8 8-- 9 9--10 1--10

g2 <- make_(ring(10), without_attr())
g2
#> IGRAPH ba6f897 U--- 10 10 -- 
#> + edges from ba6f897:
#>  [1] 1-- 2 2-- 3 3-- 4 4-- 5 5-- 6 6-- 7 7-- 8 8-- 9 9--10 1--10