grand {grand}R Documentation

Apply Guidelines for Reporting About Network Data (GRAND) to an igraph object

Description

The grand function stores characteristics about the graph as graph attributes that can be summarized in a narrative using the grand.text() or a table using grand.table().

Usage

grand(
  G,
  interactive = TRUE,
  name = NA,
  doi = NA,
  url = NA,
  vertex1 = NULL,
  vertex2 = NULL,
  vertex1.total = 0,
  vertex2.total = 0,
  edge.pos = NULL,
  edge.neg = NULL,
  weight = NULL,
  measure = NULL,
  mode = NULL,
  year = NULL,
  topology = character()
)

Arguments

G

An igraph object, with weights/signs (if present) stored in E(G)$weight

interactive

boolean: Should GRAND run interactively?

name

string: Name of the network

doi

string: DOI associated with the data

url

string: Link to data

vertex1

string: Entity represented by vertices

vertex2

string: Entity represented by vertices

vertex1.total

numeric: Number of entities in the network's boundary

vertex2.total

numeric: Number of entities in the network's boundary

edge.pos

string: Relationship represented by (positive) edges

edge.neg

string: Relationship represented by negative edges

weight

string: What the edge weights represent

measure

string: Scale on which edge weights are measured

mode

string: Mode of data collection

year

numeric: Year in which data was collected

topology

string: Vector of topological metrics to be computed in GRAND summaries

Details

The interactive mode (default) asks the user a series of questions based on the igraph object, while non-interactive mode allows the user to directly supply the relevant attributes.

Data

The first set of interactive questions ask about the data as a whole:

Nodes

The second set of interactive questions ask about the nodes/vertices:

Edges

The third set of interactive questions ask about the edges:

Topology

The final set of interactive questions ask about relevant topological characteristics. You may choose to (1) use the defaults for this network type, (2) choose characteristics from a list, (3) compute all available characteristics, or (4) compute no characteristics. For comparability and to ensure they are well-defined, all characteristics are computed on an undirected and unweighted version of G using existing igraph functions. Available topological characteristics include:

Value

An igraph object

Examples

data(airport)  #Load example data
airport <- grand(airport)  #Apply GRAND interactively
airport <- grand(airport, interactive = FALSE, #Apply GRAND non-interactively
                 vertex1 = "Airports",
                 vertex1.total = 382,
                 edge.pos = "Routes",
                 weight = "Passengers",
                 measure = "Count",
                 mode = "Archival",
                 year = "2019",
                 topology = c("clustering coefficient", "mean path length", "degree distribution"))

[Package grand version 0.9.0 Index]