Learn R Programming

spatgraphs (version 2.62)

spatgraphs-other: Make the graph symmetric/compute edge lengths

Description

sg2sym makes the graph symmetric.

edgeLengths returns the distances of edge-connected points as a list x=(i,j,d) such that distance(x$i[k],x$j[k])=x$d[k], k=1,...,NumbeOfEdges.

Usage

sg2sym(x, way=1)
   edgeLengths(x, pp, ...)

Arguments

x
sg-object.
pp
Point pattern, for distances.
way
(in sg2sym). If 1, use (xy OR yx) rule, if anything else use (xy AND yx) rule.
...
ignored