FromDist2Graph From distance object or matrix to graph, default is to return igraph object This function was developed based on

FromDist2Graph(d, k.param = 30, return_igraph = T)

Arguments

d

the distance matrix, this can be either dist or a matrix

k.param

K default is 30

return_igraph

Wheather return igraph, default is T which return igraph. Otherwise, return adjacent matrix

Value

igraph or adjacent matrix