Converts GNG to igraph object, where every vertex contains attributes gng.index, error, data.label and 3 first spatial coordinates (as attributes v0, v1, v2).
Additionally utility attribute is present if utility GNG is used.
Usage
convertToIGraph(object, calculate.dist = TRUE)
Arguments
object
GNG object
calculate.dist
If true will calculate all n^2 distances in the graph