coerce_to_adjacency function

Coerce to adjacency matrix

Coerce to adjacency matrix

Takes an object of type "qgraph", "igraph", or an adjacency matrix (or data.frame) and outputs an adjacency matrix

coerce_to_adjacency(input, directed = NULL)

Arguments

  • input: a network of class "igraph", "qgraph", or an adjacency matrix representing a network
  • directed: logical. is the network directed? If set to NULL, auto-detection is used