make_explicit function

Making networks with explicit ties

Making networks with explicit ties

This function creates a network from a vector of explicitly named nodes and ties between them. create_explicit() largely wraps igraph::graph_from_literal(), but will also accept character input and not just a formula, and will never simplify the result.

Ties are indicated by -, and directed ties (arcs) require + at either or both ends. Ties are separated by commas, and isolates can be added as an additional, unlinked node after the comma within the formula. Sets of nodes can be linked to other sets of nodes through use of a semi-colon. See the example for a demonstration.

create_explicit(...)

Arguments

  • ...: Arguments passed on to {igraph}.

Examples

create_explicit(A -+ B, B -+ C, A +-+ C, D, E:F:G-+A, E:F+-+G:H)

See Also

Other makes: make_cran, make_create, make_ego, make_learning, make_motifs, make_play, make_random, make_read, make_stochastic, make_write

  • Maintainer: James Hollway
  • License: MIT + file LICENSE
  • Last published: 2024-11-05