crossing2 | R Documentation |
Determine if edges in a graph cross groups or stay within groups. This is similar to the crossings function in igraph, but uses a vector for the split rather than a communities object.
crossing2(split, g)
split |
a vector with a value for each vertex in |
g |
an igraph object |
A logical vector indicating for each edge if it crosses groups or not. For each edge that crosses, it is TRUE, otherwise it is FALSE.
g=igraph::graph_from_literal(1-2,2-3:4,3-4:5:6,5-1)
split=c("A","A","B","B","A","B")
igraph::V(g);split
igraph::E(g);crossing2(split,g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.