Learn R Programming

migraph (version 0.9.3)

is: Logical tests of network properties

Description

These functions implement logical tests for various network properties.

Usage

is_migraph(object)

is_graph(object)

is_edgelist(object)

is_twomode(object)

is_weighted(object)

is_directed(object)

is_labelled(object)

is_signed(object)

is_connected(object, method = c("weak", "strong"))

is_complex(object)

is_multiplex(object)

is_uniplex(object)

is_acyclic(object)

Arguments

object

An object of a migraph-consistent class:

  • matrix, from base R

  • edgelist, a data frame from base R or tibble from tibble

  • igraph, from the igraph package

  • network, from the network package

  • tbl_graph, from the tidygraph package

method

Whether to identify components if only "weak"ly connected or also "strong"ly connected.

Value

TRUE if the condition is met, or FALSE otherwise.

Functions

  • is_migraph: Tests whether network is migraph-compatible

  • is_graph: Tests whether network contains graph-level information

  • is_edgelist: Tests whether data frame is an edgelist

  • is_twomode: Tests whether network is a two-mode network

  • is_weighted: Tests whether network is weighted

  • is_directed: Tests whether network is directed

  • is_labelled: Tests whether network includes names for the nodes

  • is_signed: Tests whether network is signed positive/negative

  • is_connected: Tests whether network is (weakly/strongly) connected

  • is_complex: Tests whether network contains any loops

  • is_multiplex: Tests whether network is multiplex, either from multiple rows with the same sender and receiver, or multiple columns to the edgelist.

  • is_uniplex: Tests whether network is simple (both uniplex and simplex)

  • is_acyclic: Tests whether network is a directed acyclic graph

See Also

Other manipulation: add, coercion, to

Examples

Run this code
# NOT RUN {
is_twomode(ison_southern_women)
is_weighted(ison_southern_women)
is_directed(ison_southern_women)
is_labelled(ison_southern_women)
is_signed(ison_southern_women)
is_connected(ison_southern_women)
is_complex(ison_southern_women)
is_uniplex(ison_algebra)
is_acyclic(ison_algebra)
# }

Run the code above in your browser using DataLab