Learn R Programming

redist (version 3.1.5)

get_adj: Get and set the adjacency graph from a redist_map object

Description

Get and set the adjacency graph from a redist_map object

Usage

get_adj(x)

set_adj(x, adj)

Arguments

x

the redist_map object

adj

a new adjacency list.

Value

a zero-indexed adjacency list (get_adj)

the modified redist_map object (set_adj)