contract.vertices | R Documentation |
contract.vertices()
was renamed to contract()
to create a more
consistent API.
contract.vertices(
graph,
mapping,
vertex.attr.comb = igraph_opt("vertex.attr.comb")
)
graph |
The input graph, it can be directed or undirected. |
mapping |
A numeric vector that specifies the mapping. Its elements correspond to the vertices, and for each element the id in the new graph is given. |
vertex.attr.comb |
Specifies how to combine the vertex attributes in
the new graph. Please see |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.