Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

Commit e7a53a0

Browse files
fix: broaden friend edge detection to all resolved non-class locations
The friend SQL query was hardcoded to location='public', missing meetings at cafes, libraries, paths, and other resolved locations. This caused under-counting of friend edges compared to stranger/familiar-stranger queries which already used location NOT IN ('class','unknown',''). Align the friend query with the same inclusive filter used by the other relationship types. Fixes #134
1 parent e18c600 commit e7a53a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Gvisual/src/app/Network.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static void generateFile(String path, String Month, String Date, int dThr
9999
+ " FROM ( SELECT imei1 , imei2, count(*) as C,avg(duration) as d"
100100
+ " FROM ( SELECT imei1, imei2, duration"
101101
+ " FROM meeting"
102-
+ " WHERE month = ? AND date = ? AND location= 'public' AND duration > ?) as b"
102+
+ " WHERE month = ? AND date = ? AND location NOT IN ('class', 'unknown', '') AND duration > ?) as b"
103103
+ " GROUP BY imei1, imei2) as a, deviceID as x, deviceID as y"
104104
+ " WHERE C >= ? AND a.imei1= x.imei AND a.imei2 = y.imei";
105105

0 commit comments

Comments
 (0)