![]() ![]() geodist (without loss of generality) treats all paths as directed, a fact which should be kept in mind when interpreting geodist output.īy default, geodist ignores edge values (except for NAed edges, which are dropped when na.omit=TRUE). Note that the choice of infinite path length for disconnected vertex pairs is non-canonical (albeit common), and some may prefer to simply treat these as missing values. This routine is used by a variety of other functions many of these will allow the user to provide manually precomputed geodist output so as to prevent expensive recomputation. Logical should NA-valued edges be removed? Logical should edge values be ignored when computing geodesics? Logical should a predecessor list be included in the returned object? Logical should a count of geodesics be included in the returned object? The value to use for geodesic distances between disconnected nodes by default, this is equal Inf. Geodist(dat, inf.replace=Inf, count.paths=TRUE, predecessors=FALSE, Where geodesics do not exist, the value in inf.replace is substituted for the distance in question. Geodist uses a BFS to find the number and lengths of geodesics between all nodes of dat.
0 Comments
Leave a Reply. |