Skip to contents

Create a graph from nb.

Usage

nb_to_graph(nb)

Source

From code by Mitzi Morris.

Arguments

nb

A neighbourhood list object.

Value

A list containing

  • n The number of nodes in the graph

  • n_edges To-do

  • node1 To-do

  • node2 To-do

Examples

nb <- sf_to_nb(mw)
#> Error in .class1(object): object 'mw' not found
nb_to_graph(nb)
#> Error in nb_to_graph(nb): object 'nb' not found