Nodes and Edges

Create, extract, and transform nodes and edges objects

create_node_labels()

Create unique node labels

get_node_list()

Get the list of nodes

create_edge_list()

Create an edge list

append_edge_lists()

Append several edge lists

edges_to_sf()

Convert edge list to spatial object

connectivity_matrix()

Create a connectivity matrix from an edge list

append_matrix()

Combine several connectivity matrices

matrix_to_edge_list()

Convert an connectivity matrix to an edge list

Detect neighbors

Methods to detect neighbors using chess movements

pawn()

Find neighbors according to pawn movement

fool()

Find neighbors according to fool movement

rook()

Find neighbors according to rook movement

bishop()

Find neighbors according to bishop movement

bishop_right()

Find neighbors according to bishop right movement

bishop_left()

Find neighbors according to bishop left movement

knight()

Find neighbors according to knight movement

knight_right()

Find neighbors according to knight right movement

knight_left()

Find neighbors according to knight left movement

queen()

Find neighbors according to queen movement

wizard()

Find neighbors according to wizard movement

Visualization tools

Functions to visualize networks objects

gg_chessboard()

Plot a sampling as a chessboard

geom_node()

Highlight a node on a chessboard

geom_neighbors()

Highlight neighbors on a chessboard

geom_edges()

Link neighbors by arrow on a chessboard

gg_matrix()

Plot a connectivity or a nodes-by-edges matrix

Distances computation

Compute distances between nodes

distance_euclidean()

Compute the pairwise Euclidean distance

Objects for MEM

Create objects to be used in Moran’s Eigenvector Maps (MEM)

edges_weights_matrix()

Create an edges weights matrix

spatial_weights_matrix()

Create a spatial weights matrix

Objects for AEM

Create objects to be used in Asymetric Eigenvector Maps (AEM)

nodes_by_edges_matrix()

Create a nodes-by-edges matrix

edges_weights_vector()

Create an edges weights vector