sg2igraph: sg to igraph

View source: R/sg2igraph.R

sg2igraphR Documentation

sg to igraph

Description

Obsolete. Use igraph::graph_from_adj_list on the graph edges element.

Usage

sg2igraph(g, x, ...)

Arguments

g

sg object

x

possibly the location pattern

...

not used

Not implemented. You can use the 'graph_from_adj_list'-function in 'igraph'-package on the edges-element of the graph.

Examples

## Not run: 
ix <- igraph::graph_from_adj_list(x$edges)

## End(Not run)


spatgraphs documentation built on Feb. 16, 2023, 8:49 p.m.