Skip to content

Commit b8983da

Browse files
committed
chore: fix conflict
2 parents 53939b0 + d0b9a0f commit b8983da

File tree

3 files changed

+106
-3
lines changed

3 files changed

+106
-3
lines changed

CHANGELOG.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# ChangeLog
2+
3+
#### 0.1.26
4+
5+
- feat: dfs supports undirected graph data;
6+
7+
#### 0.1.25
8+
9+
- feat: Optimized data preprocessing coding - when the feature values are all numerical, use the original values (plus normalization), and do not use one-hot coding
10+
11+
#### 0.1.24
12+
13+
- fix: i-louvain without cluster problem;
14+
15+
#### 0.1.23
16+
17+
- perf: k-means algorithm: set K to minimum
18+
19+
#### 0.1.22
20+
21+
- fix: k-means algorithm, perf: louvain -- support specified parameters such as propertyKey,involvedKeys and uninvolvedKeys
22+
23+
#### 0.1.21
24+
25+
- perf: k-means algorithm -- Optimize parameters and return
26+
27+
#### 0.1.20
28+
29+
- feat: add k-means algorithm for nodes clustering
30+
31+
#### 0.1.19
32+
33+
- fix: GADDI matched failed problem;
34+
35+
#### 0.1.18
36+
37+
- feat: add one-hot data preprocessing;
38+
39+
#### 0.1.17
40+
41+
- feat: add consine-similarity algorithm and nodes-consine-similarity algorithm;
42+
43+
#### 0.1.16
44+
45+
- feat: add i-louvain based on louvain according to academic;
46+
47+
#### 0.1.15
48+
49+
- feat: k-core algorithm;
50+
51+
#### 0.1.14
52+
53+
- fix: GADDI with proper begin p node;
54+
- feat: louvain with property similarity measure
55+
56+
#### 0.1.10
57+
58+
- fix: GADDI with better accuracy;
59+
60+
#### 0.1.9
61+
62+
- chore: separate sync and async functions into different entries;
63+
64+
#### 0.1.8
65+
66+
- fix: CPU usage increases due to 0.1.3-beta ~ 0.1.3 with publicPath configuration;
67+
- fix: CPU usage increases due to 0.1.6 ~ 0.17 with browser output;
68+
- feat: export fix: export detectAllCycles, detectAllDirectedCycle, detectAllUndirectedCycle;
69+
70+
#### 0.1.6
71+
72+
- fix: louvain with increased clusterId and node with correct new clusterId;
73+
74+
#### 0.1.5
75+
76+
- fix: worker async problem;
77+
- chore: unify allPath and allPaths;
78+
79+
#### 0.1.2
80+
81+
- fix: failed to find result problem in dijkstra;
82+
83+
#### 0.1.1
84+
85+
- fix: shortestPath with wrong result;
86+
87+
#### 0.1.0
88+
89+
- fix: findShortestPath undefined is not interatable;
90+
91+
#### 0.1.0-beta.3
92+
93+
- fix: cannot read degree of undefined problem of GADDI;
94+
95+
#### 0.1.0-beta
96+
97+
- feat: worker for algorithms;
98+
- feat: gaddi for graph pattern matching;
99+
100+
#### 0.0.7
101+
102+
- feat: dijkstra supports finding multiple shortest paths;

packages/graph/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@antv/graph",
3-
"version": "0.0.1",
2+
"name": "@antv/algorithm",
3+
"version": "0.2.0",
44
"description": "graph algorithm",
55
"keywords": [
66
"graph",

packages/graph/src/dfs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function depthFirstSearchRecursive(
3535
previousNodeId: ID,
3636
callbacks: IAlgorithmCallbacks,
3737
visit: Set<ID>,
38-
directed: boolean,
38+
directed: boolean = true,
3939
visitOnce: boolean
4040
) {
4141
callbacks.enter({
@@ -47,6 +47,7 @@ function depthFirstSearchRecursive(
4747
.getRelatedEdges(currentNodeId, 'out')
4848
.map((e) => graph.getNode(e.target))
4949
: graph.getNeighbors(currentNodeId);
50+
5051
neighbors.forEach((nextNode) => {
5152
const nextNodeId = nextNode.id;
5253
// `Visit` is not considered when judging recursive conditions

0 commit comments

Comments
 (0)