Skip to content

Conversation

@Yanyan-Wang
Copy link
Contributor

fix: louvain data pollution

@Yanyan-Wang Yanyan-Wang requested a review from xiaoiver October 16, 2023 03:03
@@ -1,19 +1,23 @@
import { NodeID, INode, IEdge } from "../../packages/graph/src/types";
import { ID } from '@antv/graphlib';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其他都是同一 ID 从 graphlib 导出

nodes.forEach(() => {
squareEuclideanDistanceInfo.push([]);
});
const clusterInertialMap = new Map<ID, number>();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

中间结果不污染数据,另外存储在一个 map 中

@xiaoiver xiaoiver merged commit 305a20a into next Oct 16, 2023
@xiaoiver xiaoiver deleted the v5-louvain-data branch October 16, 2023 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants