code: def _get_inclist(graph, mode="out"):
      """Returns the incidence list representation of the graph.
  
      The incidence list representation is a list of lists. Each
      item of the outer list belongs to a single vertex of the graph.
      The inner list contains the IDs of the incident edges of the
      given vertex.
  
      @param mode: if C{\"out\"}, returns the successors of the vertex. If
        C{\"in\"}, returns the predecessors of the vertex. If C{\"all\"}, both
        the predecessors and the successors will be returned. Ignored
        for undirected graphs.
      """
      return [
          graph.incident(idx, mode) for idx in range(graph.vcount())
      ]
  
imports: from igraph._igraph import GET_ADJACENCY_BOTH, GET_ADJACENCY_LOWER, GET_ADJACENCY_UPPER, GraphBase
  from igraph.datatypes import Matrix
label_desc: Use image node_id 5 for calling a global function with example usage: _get_inclist(graph, mode) and returns: unknown