qminer
Version:
A C++ based data analytics platform for processing large-scale real-time streams containing structured and unstructured data
43 lines (33 loc) • 823 B
JavaScript
/**
* Copyright (c) 2015, Jozef Stefan Institute, Quintelligence d.o.o. and contributors
* All rights reserved.
*
* This source code is licensed under the FreeBSD license found in the
* LICENSE file in the root directory of this source tree.
*/
// console.log(__filename)
var assert = require('../../src/nodejs/scripts/assert.js');
var snap = require('../../').snap;
describe('Graphs test, old', function () {
it('should survive', function () {
var g = new snap.UndirectedGraph();
g.addNode(1);
g.addNode(2);
g.addNode(3);
g.addNode(4);
g.addNode(5);
g.addNode(6);
g.addNode(7);
g.addEdge(1, 2);
g.addEdge(2, 3);
g.addEdge(3, 4);
g.addEdge(4, 1);
g.addEdge(4, 2);
g.addEdge(5, 6);
g.addEdge(5, 7);
g.eachEdge(function(E){
//console.log(E.srcId+'-'+E.dstId);
});
var m = g.adjMat();
g.draw('g.html');
})});