Skip to contents

[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_combine")
)

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.

contract_vertices()