1
0
Fork 0

GraphViewer: Added Method Stub to NodeReducer

This commit is contained in:
Michael Hackstein 2013-05-13 09:33:32 +02:00
parent 79dc9621c0
commit 83a6344eae
3 changed files with 4 additions and 3 deletions

View File

@ -40,6 +40,6 @@ function NodeReducer(nodes, edges) {
var self = this;
self.getCommunity = function(limit, focus) {
return null;
return [];
};
}

View File

@ -62,6 +62,7 @@ var helper = helper || {};
edges.push(helper.createSimpleEdge(nodes, toConnect[i], toConnect[j]));
}
}
return edges;
};
}());

View File

@ -119,7 +119,7 @@
it('should prefer cliques as a community over an equal sized other group', function() {
nodes = helper.createSimpleNodes([0, 1, 2, 3, 4, 5, 6, 7, 8]);
edges = helper.createcreateClique(nodes, [0, 1, 2, 3]);
edges = helper.createClique(nodes, [0, 1, 2, 3]);
edges.push(helper.createSimpleEdge(nodes, 4, 3));
edges.push(helper.createSimpleEdge(nodes, 4, 5));
edges.push(helper.createSimpleEdge(nodes, 5, 6));
@ -132,7 +132,7 @@
it('should not return a close group if there is an alternative', function() {
nodes = helper.createSimpleNodes([0, 1, 2, 3, 4, 5, 6, 7]);
edges = helper.createcreateClique(nodes, [0, 1, 2]);
edges = helper.createClique(nodes, [0, 1, 2]);
edges.push(helper.createSimpleEdge(nodes, 3, 2));
edges.push(helper.createSimpleEdge(nodes, 3, 4));
edges.push(helper.createSimpleEdge(nodes, 4, 5));