assortativity.nominal: Assortativity coefficient

View source: R/assortativity.R

assortativity.nominalR Documentation

Assortativity coefficient

Description

[Deprecated]

assortativity.nominal() was renamed to assortativity_nominal() to create a more consistent API.

Usage

assortativity.nominal(graph, types, directed = TRUE, normalized = TRUE)

Arguments

graph

The input graph, it can be directed or undirected.

types

Vector giving the vertex types. They as assumed to be integer numbers, starting with one. Non-integer values are converted to integers with as.integer().

directed

Logical scalar, whether to consider edge directions for directed graphs. This argument is ignored for undirected graphs. Supply TRUE here to do the natural thing, i.e. use directed version of the measure for directed graphs and the undirected version for undirected graphs.

normalized

Boolean, whether to compute the normalized assortativity. The non-normalized nominal assortativity is identical to modularity. The non-normalized value-based assortativity is simply the covariance of the values at the two ends of edges.


igraph/rigraph documentation built on May 4, 2024, 6:31 a.m.