Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx150
var assert = require('assert');class StronglyConnectedComponents { constructor(graph) { const numOfVertices = graph.verticesCount; this.count = 0; return this; } count() { return this.count; }}class Graph { constructor() { this.adjacencyList = new Map(); this.verticesCount = 0; } addVertex(nodeVal) { this.adjacencyList.set(nodeVal, []); this.verticesCount++; } addEdge(src, dest) { this.adjacencyList.get(src).push(dest);OUTPUT
Results will appear here.