(source,visited,l)
Function that performs DFS
Function that performs DFS
Function that performs DFS
def dfs(source,visited,l):
    ''' Function that performs DFS '''

    visited[source] = True
    for child in l[source]:
        if not visited[child]:
            dfs(child,visited,l)
def dfs ( source , visited , l ) : visited [ source ] = True for child in l [ source ] : if not visited [ child ] : dfs ( child , visited , l )