Learn R Programming

migraph (version 0.8.1)

to: Tools for reformatting networks, graphs, and matrices

Description

Note that to_onemode(), which is currently only implemented for igraph, is not the same as project_rows() and project_cols(). There is no transformation involved; to_onemode() simply deletes the 'type' attribute from vertices, removing the bipartite note, but retaining all vertices.

Usage

to_unweighted(object, threshold = 1)

to_unnamed(object)

to_undirected(object)

to_onemode(object)

to_main_component(object)

to_uniplex(object, edge)

to_unsigned(object, keep = c("positive", "negative"))

to_simplex(object)

to_named(object)

Arguments

object

A matrix, {igraph} graph, {tidygraph} tbl_graph, or {network} object.

threshold

For a matrix, the threshold to binarise/dichotomise at.

edge

the name of an edge attribute to retain from a graph

keep

in the case of a signed network, whether to retain the "positive" or "negative" ties

Examples

Run this code
# NOT RUN {
to_unweighted(project_rows(southern_women))
to_unnamed(project_rows(southern_women))
to_undirected(ison_coleman)
to_onemode(ison_marvel_teams)
to_uniplex(ison_m182, "friend_tie")
to_unsigned(ison_marvel_relationships, "positive")
to_unsigned(ison_marvel_relationships, "negative")
to_simplex(ison_m182)
to_named(ison_m182)
# }

Run the code above in your browser using DataLab