parameters: (g)
return_statement: return ret
docstring: Return nodes without predecessors
docstring_summary: Return nodes without predecessors
docstring_tokens: Return nodes without predecessors
function: def _find_source_nodes(g):
      ''' Return nodes without predecessors '''
      ret = []
      for cn in g:
          cur_pred = list(g.predecessors(cn))
          if not cur_pred:
              ret.append(cn)
      return ret
function_tokens: def _find_source_nodes ( g ) : ret = [ ] for cn in g : cur_pred = list ( g . predecessors ( cn ) ) if not cur_pred : ret . append ( cn ) return ret