




__magic_name__     :     str  							=					{0: [1, 2], 1: [0, 3], 2: [0], 3: [1], 4: [5, 6], 5: [4, 6], 6: [4, 5]}

__magic_name__     :     Tuple  							=					{0: [1, 2, 3], 1: [0, 3], 2: [0], 3: [0, 1], 4: [], 5: []}
def 		a_       (   __lowerCAmelCase      ,   __lowerCAmelCase      ,   __lowerCAmelCase							):
  lowerCAmelCase__								=			True
  lowerCAmelCase__								=			[]

  for neighbour in graph[vert]:
    if not visited[neighbour]:
      connected_verts += dfs(__lowerCAmelCase      ,   __lowerCAmelCase      ,   __lowerCAmelCase							)

  return [vert, *connected_verts]
def 		a_       (   __lowerCAmelCase							):
  lowerCAmelCase__								=			len(__lowerCAmelCase							)
  lowerCAmelCase__								=			graph_size * [False]
  lowerCAmelCase__								=			[]

  for i in range(__lowerCAmelCase							):
    if not visited[i]:
      lowerCAmelCase__								=			dfs(__lowerCAmelCase      ,   __lowerCAmelCase      ,   __lowerCAmelCase							)
      components_list.append(__lowerCAmelCase							)

  return components_list


if __name__ == "__main__":
      import doctest

      doctest.testmod()







import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info
def 		a_       (   __lowerCAmelCase							):





  class 						SCREAMING_SNAKE_CASE__		:
       def __init__(	self  :		List[str]					,	__lowerCamelCase  :		Any	):



         """simple docstring"""
         assert isinstance(__lowerCamelCase					,	(bytes, str)	)
         lowerCAmelCase__								=			content



       def 					A__			(	self  :		int	):



         """simple docstring"""
         return json.loads(self.content	)

  def mock_response(*__lowerCAmelCase      ,   **__lowerCAmelCase							):
    assert args[0] == AUTHENTICATED_USER_ENDPOINT
    assert "Authorization" in kwargs["headers"]
    assert kwargs["headers"]["Authorization"].startswith('''token '''							)
    assert "Accept" in kwargs["headers"]
    return FakeResponse(B'''{"login":"test","id":1}'''							)

  monkeypatch.setattr(__lowerCAmelCase      ,   '''get'''      ,   __lowerCAmelCase							)
  lowerCAmelCase__								=			fetch_github_info('''token'''							)
  assert result["login"] == "test"
  assert result["id"] == 1

