Skip to contents

Swap the block membership of a vertex

Usage

swap_blocks(p, curr_v, proposed_new_block)

Arguments

p

Vector of integer values giving the block membership of each vertex

curr_v

vertex id

proposed_new_block

block id