Override the summary() function for spatial weights
# S3 method for Weight
summary(object, ...)
A Weight object
summary optional parameters
A summary description of an instance of Weight-class
if (FALSE) {
library(sf)
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- st_read(guerry_path)
queen_w <- queen_weights(guerry)
summary(queen_w)
}