class_docstr: Class for testing different cases for connected components in graph
class_docstr_tok: ["Class","for","testing","different","cases","for","connected","components","in","graph"]
docstr: Test Function that test the different cases of count connected
  components
   2----------0    1--------5      3
   |
   |
   4
       output = 3
docstr_tok: ["Test","Function","that","test","the","different","cases","of","count","connected","components","2","--","--","--","--","--","0","1","--","--","--","--","5","3","|","|","4","output","=","3"]
code: def test_count_connected_components(self):
      """
      Test Function that test the different cases of count connected
      components
       2----------0    1--------5      3
       |
       |
       4
           output = 3
      """
      expected_result = 3
      # adjacency list representation of graph
      l = [[2], [5], [0, 4], [], [2], [1]]
  
      size = 5
      result = count_connected_number_of_component.count_components(
          l, size
      )
      self.assertEqual(result, expected_result)
  
imports: from algorithms.graph import Tarjan
  from algorithms.graph import check_bipartite
  from algorithms.graph.dijkstra import Dijkstra
  from algorithms.graph import ford_fulkerson
  from algorithms.graph import edmonds_karp
  from algorithms.graph import dinic
  from algorithms.graph import maximum_flow_bfs
  from algorithms.graph import maximum_flow_dfs
  from algorithms.graph import all_pairs_shortest_path
  from algorithms.graph import bellman_ford
  from algorithms.graph import count_connected_number_of_component
  from algorithms.graph import prims_minimum_spanning
  from algorithms.graph import check_digraph_strongly_connected
  from algorithms.graph import cycle_detection
  from algorithms.graph import find_path
  from algorithms.graph import path_between_two_vertices_in_digraph
  import unittest
label_desc: Use image node_id 1 for calling the TestConnectedComponentInGraph obj's underlying member method code with example usage: obj.test_count_connected_components() without return types