shapegraphToIGraph {alcyon} | R Documentation |
Conversion of shapegraph to igraph
Description
Creates igraph based on the connections and the x,y coordinates of the centroids of shapes in a shapegraph (axial,segment, convex). Specify weightColumn to assign weight to graph edges.
Usage
shapegraphToIGraph(shapeGraph, weightColumn = NA)
Arguments
shapeGraph |
A ShapeGraph |
weightColumn |
Optional.The variable used to assign weight to graph edges |
Details
If weightColumn is provided, edge connections weight is calculated by taking the average of the variable of the connected nodes.
Value
Returns graph.data.frame.
[Package alcyon version 0.4.0 Index]