From 34d4f58ff7f4f1035874b7617b320c278789ae7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tao=20Bror=20Bojl=C3=A9n?= Date: Sun, 18 Aug 2019 17:25:24 +0200 Subject: [PATCH] only put instances with a type on the graph --- gephi/src/main/java/space/fediverse/graph/GraphBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gephi/src/main/java/space/fediverse/graph/GraphBuilder.java b/gephi/src/main/java/space/fediverse/graph/GraphBuilder.java index da6b441..2f2e441 100644 --- a/gephi/src/main/java/space/fediverse/graph/GraphBuilder.java +++ b/gephi/src/main/java/space/fediverse/graph/GraphBuilder.java @@ -29,7 +29,7 @@ import java.util.concurrent.TimeUnit; public class GraphBuilder { private static final String nodeQuery = new StringBuilder().append("SELECT i.domain as id, i.domain as label") .append(" FROM instances i INNER JOIN edges e ON i.domain = e.source_domain OR i.domain = e.target_domain") - .append(" WHERE i.user_count IS NOT NULL AND NOT i.opt_out").toString(); + .append(" WHERE i.user_count IS NOT NULL AND NOT i.opt_out AND i.type IS NOT NULL").toString(); private static final String edgeQuery = new StringBuilder().append("SELECT e.source_domain AS source,") .append(" e.target_domain AS target, e.weight AS weight FROM edges e").toString();