Description Usage Arguments Details Value Note Author(s) See Also Examples
Converts a hypergraph (or graph) into a bipartite graph.
1 | as.bipartite(h)
|
h |
a hypergraph or a graph. |
This converts a hypergraph or a graph into a bipartite graph, by
taking the incidence matrix and treating this as the incidence matrix
of a bipartite graph. It uses graph_from_incidence_matrix
to perform the conversion.
an igraph bipartite graph.
This works on graphs, resulting in the bipartite graph with edges as one type and vertices as another. This might not be what you want, for example if you think the graph is already bipartite, this will not return the graph, but will rather create a new bipartite graph from the vertices and edges.
David J. Marchette dmarchette@gmail.com.
1 2 3 4 | h <- hypergraph_from_edgelist(list(letters[1:3],
letters[c(2,4,7)],
letters[5:8]))
g <- as.bipartite(h)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.