1 | describe('getRank', () => {
|
2 | const getRank = require('./utils').getRank
|
3 |
|
4 | const graph1 = require('./examples/graphs/graph1.json')
|
5 | const graph2 = require('./examples/graphs/graph2.json')
|
6 |
|
7 | it('returns the maximum cardinality of the edges', () => {
|
8 | getRank(graph1.edges).should.be.eql(2)
|
9 | getRank(graph2.edges).should.be.eql(3)
|
10 | })
|
11 | })
|