Skip to content

Commit 421a1c6

Browse files
fixed version check
1 parent c58fe55 commit 421a1c6

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

experimental/algorithm/LAGraph_LouvainIS.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,7 @@ int LAGraph_LouvainIS(
525525

526526
LG_FREE_EXTRACT;
527527
LG_FREE_ALL;
528+
return (GrB_SUCCESS) ;
528529
#else
529-
LG_ASSERT(false, GrB_NOT_IMPLEMENTED);
530-
#endif
531-
return 0;
532-
}
530+
return (GrB_NOT_IMPLEMENTED);
531+
#endif

experimental/algorithm/LAGraph_LouvainSeq.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,7 @@ int LAGraph_LouvainSeq(
369369
(*S_result) = S;
370370
S = NULL;
371371
LG_FREE_ALL;
372+
return (GrB_SUCCESS) ;
372373
#else
373-
LG_ASSERT(false, GrB_NOT_IMPLEMENTED);
374+
return (GrB_NOT_IMPLEMENTED);
374375
#endif
375-
return 0;
376-
}

experimental/algorithm/LaGr_Modularity2.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ int LAGr_Modularity2(
7575
GrB_Matrix S,
7676
char *msg)
7777
{
78+
#if LG_SUITESPARSE_GRAPHBLAS_V10
7879
LG_CLEAR_MSG;
7980
char MATRIX_TYPE[LAGRAPH_MSG_LEN];
8081

@@ -128,5 +129,7 @@ int LAGr_Modularity2(
128129
*Q = Q_;
129130

130131
LG_FREE_ALL;
131-
return 0;
132-
}
132+
return (GrB_SUCCESS) ;
133+
#else
134+
return (GrB_NOT_IMPLEMENTED);
135+
#endif

0 commit comments

Comments
 (0)