const dfs = require('../directedGraph/dfsRecursive')
describe('Directed Graph', () => {
  test('should test', () => {
    const graph1 = {
      0: [1],
      1: [3],
      2: [0],
      3: [2]
    }

    const graph2 = {
      0: [1],
      1: [3],
      2: [0],
      3: [2]
    }

    const graph3 = {
      0: [4, 3, 1],
      1: [3, 2, 4],
      2: [3],
      3: [4],
      4: []
    }

    console.log(dfs(0, graph1))
    console.log(dfs(0, graph2))
    console.log(dfs(0, graph3))
  })
})
