This function obtains the dual of an affiliation network, in which the actors and events have swapped roles. To do this, it negates the logical values of the node type attribute and reorders the node ids accordingly.

dualize(graph)

dual_an(graph)

dual.an(graph)

Arguments

graph

An affiliation network.

See also

Other modal queries and manipulations: mode_addition, mode_counts, modes, schedule

Examples

data(women_clique) tab <- table(V(women_clique)$type) proj <- actor_projection(dualize(women_clique)) vcount(proj) == tab[2]
#> TRUE #> TRUE