@@ -267,7 +267,9 @@ line.graph <- function(graph) {
267267 lifecycle :: deprecate_soft(" 2.1.0" , " line.graph()" , " make_line_graph()" )
268268 ensure_igraph(graph )
269269
270- res <- linegraph_impl(graph = graph )
270+ res <- linegraph_impl(
271+ graph = graph
272+ )
271273 if (igraph_opt(" add.params" )) {
272274 res $ name <- " Line graph"
273275 }
@@ -472,7 +474,10 @@ graph.lattice <- function(
472474graph.kautz <- function (m , n ) {
473475 # nocov start
474476 lifecycle :: deprecate_soft(" 2.1.0" , " graph.kautz()" , " make_kautz_graph()" )
475- res <- kautz_impl(m = m , n = n )
477+ res <- kautz_impl(
478+ m = m ,
479+ n = n
480+ )
476481 if (igraph_opt(" add.params" )) {
477482 res $ name <- sprintf(" Kautz graph %i-%i" , m , n )
478483 res $ m <- m
@@ -499,7 +504,10 @@ graph.full.citation <- function(n, directed = TRUE) {
499504 " make_full_citation_graph()"
500505 )
501506 # Function call
502- res <- full_citation_impl(n = n , directed = directed )
507+ res <- full_citation_impl(
508+ n = n ,
509+ directed = directed
510+ )
503511
504512 res <- set_graph_attr(res , " name" , " Full citation graph" )
505513 res
@@ -538,7 +546,12 @@ graph.full.bipartite <- function(
538546 " total" = 3
539547 )
540548
541- res <- full_bipartite_impl(n1 = n1 , n2 = n2 , directed = directed , mode = mode )
549+ res <- full_bipartite_impl(
550+ n1 = n1 ,
551+ n2 = n2 ,
552+ directed = directed ,
553+ mode = mode
554+ )
542555 if (igraph_opt(" add.params" )) {
543556 res $ graph $ name <- " Full bipartite graph"
544557 res $ n1 <- n1
@@ -637,7 +650,10 @@ graph.empty <- function(n = 0, directed = TRUE) {
637650 # nocov start
638651 lifecycle :: deprecate_soft(" 2.1.0" , " graph.empty()" , " make_empty_graph()" )
639652 # Function call
640- res <- empty_impl(n = n , directed = directed )
653+ res <- empty_impl(
654+ n = n ,
655+ directed = directed
656+ )
641657
642658 res
643659} # nocov end
@@ -659,7 +675,10 @@ graph.de.bruijn <- function(m, n) {
659675 " graph.de.bruijn()" ,
660676 " make_de_bruijn_graph()"
661677 )
662- res <- de_bruijn_impl(m = m , n = n )
678+ res <- de_bruijn_impl(
679+ m = m ,
680+ n = n
681+ )
663682 if (igraph_opt(" add.params" )) {
664683 res $ name <- sprintf(" De-Bruijn graph %i-%i" , m , n )
665684 res $ m <- m
@@ -729,7 +748,9 @@ graph.bipartite <- function(types, edges, directed = FALSE) {
729748graph.atlas <- function (n ) {
730749 # nocov start
731750 lifecycle :: deprecate_soft(" 2.1.0" , " graph.atlas()" , " graph_from_atlas()" )
732- res <- atlas_impl(number = n )
751+ res <- atlas_impl(
752+ number = n
753+ )
733754 if (igraph_opt(" add.params" )) {
734755 res $ name <- sprintf(" Graph from the Atlas #%i" , n )
735756 res $ n <- n
@@ -2199,7 +2220,9 @@ from_prufer <- function(...) constructor_spec(make_from_prufer, ...)
21992220# ' graph_from_atlas(sample(0:1252, 1))
22002221# ' graph_from_atlas(sample(0:1252, 1))
22012222graph_from_atlas <- function (n ) {
2202- res <- atlas_impl(number = n )
2223+ res <- atlas_impl(
2224+ number = n
2225+ )
22032226 if (igraph_opt(" add.params" )) {
22042227 res $ name <- sprintf(" Graph from the Atlas #%i" , n )
22052228 res $ n <- n
@@ -2295,7 +2318,9 @@ chordal_ring <- function(...) constructor_spec(make_chordal_ring, ...)
22952318make_line_graph <- function (graph ) {
22962319 ensure_igraph(graph )
22972320
2298- res <- linegraph_impl(graph = graph )
2321+ res <- linegraph_impl(
2322+ graph = graph
2323+ )
22992324 if (igraph_opt(" add.params" )) {
23002325 res $ name <- " Line graph"
23012326 }
@@ -2341,7 +2366,10 @@ line_graph <- function(...) constructor_spec(make_line_graph, ...)
23412366# ' make_de_bruijn_graph(2, 2)
23422367# ' make_line_graph(g)
23432368make_de_bruijn_graph <- function (m , n ) {
2344- res <- de_bruijn_impl(m = m , n = n )
2369+ res <- de_bruijn_impl(
2370+ m = m ,
2371+ n = n
2372+ )
23452373 if (igraph_opt(" add.params" )) {
23462374 res $ name <- sprintf(" De-Bruijn graph %i-%i" , m , n )
23472375 res $ m <- m
@@ -2385,7 +2413,10 @@ de_bruijn_graph <- function(...) constructor_spec(make_de_bruijn_graph, ...)
23852413# ' make_kautz_graph(2, 2)
23862414# '
23872415make_kautz_graph <- function (m , n ) {
2388- res <- kautz_impl(m = m , n = n )
2416+ res <- kautz_impl(
2417+ m = m ,
2418+ n = n
2419+ )
23892420 if (igraph_opt(" add.params" )) {
23902421 res $ name <- sprintf(" Kautz graph %i-%i" , m , n )
23912422 res $ m <- m
@@ -2447,7 +2478,12 @@ make_full_bipartite_graph <- function(
24472478 " total" = 3
24482479 )
24492480
2450- res <- full_bipartite_impl(n1 = n1 , n2 = n2 , directed = directed , mode = mode )
2481+ res <- full_bipartite_impl(
2482+ n1 = n1 ,
2483+ n2 = n2 ,
2484+ directed = directed ,
2485+ mode = mode
2486+ )
24512487 if (igraph_opt(" add.params" )) {
24522488 res $ graph $ name <- " Full bipartite graph"
24532489 res $ n1 <- n1
@@ -2562,7 +2598,10 @@ bipartite_graph <- function(...) constructor_spec(make_bipartite_graph, ...)
25622598# ' print_all(make_full_citation_graph(10))
25632599make_full_citation_graph <- function (n , directed = TRUE ) {
25642600 # Function call
2565- res <- full_citation_impl(n = n , directed = directed )
2601+ res <- full_citation_impl(
2602+ n = n ,
2603+ directed = directed
2604+ )
25662605
25672606 res <- set_graph_attr(res , " name" , " Full citation graph" )
25682607 res
0 commit comments