compute_features: Computes features for each network.

View source: R/features.R

compute_featuresR Documentation

Computes features for each network.

Description

This function computes features for each network using graph theoretic constructs.

Usage

compute_features(gr, attributes = FALSE, attr_name = NULL, fast = FALSE)

Arguments

gr

The network or graph as an igraph object.

attributes

If the network nodes/vertices have attributes, then attributes = TRUE.

attr_name

The name of the node/vertex attribute. Only a single attribute can be specified.

fast

If set to TRUE will avoid computing time consuming features.

Value

A network features object containing 20 graph-theoretic features.

Examples

set.seed(1)
gr <- igraph::erdos.renyi.game(100, 0.05)
compute_features(gr)



oddnet documentation built on May 29, 2024, 4:56 a.m.