layout.mds()
已重命名为 layout_with_mds()
,以创建更一致的 API。
用法
layout.mds(graph, dist = NULL, dim = 2, options = arpack_defaults())
参数
- graph
输入图。
- dist
用于多维标度的距离矩阵。如果为
NULL
(默认值),则使用未加权的最短路径矩阵。- dim
layout_with_mds()
支持的最大维度为节点数减一,但前提是图是连通的;对于非连通图,唯一可能的值是 2。这是因为merge_coords()
仅在 2D 中有效。- options
目前已被忽略,因为 ARPACK 不再用于解决特征值问题