contract.vertices: Contract several vertices into a single one

View source: R/community.R

contract.verticesR Documentation

Contract several vertices into a single one

Description

[Deprecated]

contract.vertices() was renamed to contract() to create a more consistent API.

Usage

contract.vertices(
  graph,
  mapping,
  vertex.attr.comb = igraph_opt("vertex.attr.comb")
)

Arguments

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 attribute.combination() for details.


igraph documentation built on Oct. 20, 2024, 1:06 a.m.