View source: R/shapegraphToIGraph.R
shapegraphToIGraph | R Documentation |
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.
shapegraphToIGraph(graphFile, weightcolumn = NA)
graphFile |
The input graph file. |
weightcolumn |
Optional.The variable used to assign weight to graph edges |
If weightcolumn is provided, edge connections weight is calculated by taking the average of the variable of the connected nodes.
Returns graph.data.frame.
Fani Kostourou Petros Koutsolampros
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.