.connect_undirected_graph {diffuStats} | R Documentation

## Function to connect a non connected graph

### Description

Function to connect a non connected graph

### Usage

    .connect_undirected_graph(g)

### Arguments

`g` | an igraph object

### Value

a connected igraph object

### Examples

    library(igraph)
    g <- diffuStats:::.connect_undirected_graph(
        graph.empty(10, directed = FALSE))
    g

[Package diffuStats version 1.10.2 Index]