You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
816 B
15 lines
816 B
import { ClusterData, GraphData } from './types';
|
|
/**
|
|
* 社区发现 louvain 算法
|
|
* @param graphData 图数据
|
|
* @param directed 是否有向图,默认为 false
|
|
* @param weightPropertyName 权重的属性字段
|
|
* @param threshold 差值阈值
|
|
* @param inertialModularity 是否使用惯性模块度(即节点属性相似性)
|
|
* @param propertyKey 属性的字段名
|
|
* @param involvedKeys 参与计算的key集合
|
|
* @param uninvolvedKeys 不参与计算的key集合
|
|
* @param inertialWeight 惯性模块度权重
|
|
*/
|
|
declare const louvain: (graphData: GraphData, directed?: boolean, weightPropertyName?: string, threshold?: number, inertialModularity?: boolean, propertyKey?: string, involvedKeys?: string[], uninvolvedKeys?: string[], inertialWeight?: number) => ClusterData;
|
|
export default louvain;
|
|
|