Learn R Programming

SeqNet (version 1.1.3)

remove_weights.default: Removes the weights of all connections

Description

Removes the weights of all connections

Usage

# S3 method for default
remove_weights(x, ...)

Arguments

x

Either a 'network', 'network_module', or 'matrix' object.

...

Additional arguments.

Value

The modified object.

Examples

Run this code
# NOT RUN {
# Create a random network with 10 nodes and add random edge weights.
nw <- random_network(10)
nw <- gen_partial_correlations(nw)
is_weighted(nw)
# Remove the edge weights from the network.
nw <- remove_weights(nw)
is_weighted(nw)
# }

Run the code above in your browser using DataLab