mirror of https://gitee.com/bigwinds/arangodb
GraphViewer: Added Method Stub to NodeReducer
This commit is contained in:
parent
79dc9621c0
commit
83a6344eae
|
@ -40,6 +40,6 @@ function NodeReducer(nodes, edges) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
self.getCommunity = function(limit, focus) {
|
self.getCommunity = function(limit, focus) {
|
||||||
return null;
|
return [];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,6 +62,7 @@ var helper = helper || {};
|
||||||
edges.push(helper.createSimpleEdge(nodes, toConnect[i], toConnect[j]));
|
edges.push(helper.createSimpleEdge(nodes, toConnect[i], toConnect[j]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return edges;
|
||||||
};
|
};
|
||||||
|
|
||||||
}());
|
}());
|
|
@ -119,7 +119,7 @@
|
||||||
|
|
||||||
it('should prefer cliques as a community over an equal sized other group', function() {
|
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]);
|
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, 3));
|
||||||
edges.push(helper.createSimpleEdge(nodes, 4, 5));
|
edges.push(helper.createSimpleEdge(nodes, 4, 5));
|
||||||
edges.push(helper.createSimpleEdge(nodes, 5, 6));
|
edges.push(helper.createSimpleEdge(nodes, 5, 6));
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
|
|
||||||
it('should not return a close group if there is an alternative', function() {
|
it('should not return a close group if there is an alternative', function() {
|
||||||
nodes = helper.createSimpleNodes([0, 1, 2, 3, 4, 5, 6, 7]);
|
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, 2));
|
||||||
edges.push(helper.createSimpleEdge(nodes, 3, 4));
|
edges.push(helper.createSimpleEdge(nodes, 3, 4));
|
||||||
edges.push(helper.createSimpleEdge(nodes, 4, 5));
|
edges.push(helper.createSimpleEdge(nodes, 4, 5));
|
||||||
|
|
Loading…
Reference in New Issue