Skip to content

Commit b687638

Browse files
committed
Previous bugfix working also for complete and uclust algorithms.
1 parent 59c88cd commit b687638

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ int main(int argc, char** argv)
3131
std::unique_ptr<Graph> graph = console.loadGraph(params);
3232

3333
console.loadObjects(params, *graph, objects, names);
34-
console.doClustering(params, *graph, objects, assignments);
34+
if (graph->getNumEdges() > 0) {
35+
console.doClustering(params, *graph, objects, assignments);
36+
}
3537
console.saveAssignments(params, *graph, names, assignments);
3638

3739
}

src/version.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
//
99
// *******************************************************************************************
1010

11-
#define VERSION "1.2.1"
12-
#define DATE "2025-05-19"
11+
#define VERSION "1.2.2"
12+
#define DATE "2025-05-22"
1313

1414

1515
/********* Version history *********
1616
17+
1.2.2 (2025-05-22)
18+
Previous bugfix working also for complete and uclust algorithms.
19+
1720
1.2.1 (2025-05-19)
1821
Fixed segmentation fault with objects file present and no edges in a filtered graph.
1922

0 commit comments

Comments
 (0)