static.fitness.game: Random graphs from vertex fitness scores

View source: R/games.R

static.fitness.gameR Documentation

Random graphs from vertex fitness scores

Description

[Deprecated]

static.fitness.game() was renamed to sample_fitness() to create a more consistent API.

Usage

static.fitness.game(
  no.of.edges,
  fitness.out,
  fitness.in = NULL,
  loops = FALSE,
  multiple = FALSE
)

Arguments

no.of.edges

The number of edges in the generated graph.

fitness.out

A numeric vector containing the fitness of each vertex. For directed graphs, this specifies the out-fitness of each vertex.

fitness.in

If NULL (the default), the generated graph will be undirected. If not NULL, then it should be a numeric vector and it specifies the in-fitness of each vertex.

If this argument is not NULL, then a directed graph is generated, otherwise an undirected one.

loops

Logical scalar, whether to allow loop edges in the graph.

multiple

Logical scalar, whether to allow multiple edges in the graph.


igraph documentation built on Oct. 20, 2024, 1:06 a.m.