Learn R Programming

migraph (version 0.8.13)

is: Tests of network properties

Description

These functions implement tests for various network properties.

Usage

is_migraph(object)

is_graph(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

A migraph-consistent class object (matrix, edgelist, igraph, network, tidygraph)

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_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

  • 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: coercion, project, to

Examples

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

Run the code above in your browser using DataLab