code: def _write_graph_to_adjacency_file(
      graph, f, sep=" ", eol="\n", *args, **kwds
  ):
      """Writes the adjacency matrix of the graph to the given file
  
      All the remaining arguments not mentioned here are passed intact
      to L{Graph.get_adjacency}.
  
      @param f: the name of the file to be written.
      @param sep: the string that separates the matrix elements in a row
      @param eol: the string that separates the rows of the matrix. Please
        note that igraph is able to read back the written adjacency matrix
        if and only if this is a single newline character
      """
      if isinstance(f, str):
          f = open(f, "w")
      matrix = graph.get_adjacency(*args, **kwds)
      for row in matrix:
          f.write(sep.join(map(str, row)))
          f.write(eol)
      f.close()
  
file_path: python-igraph/src/igraph/io/files.py
imports: import gzip
  import os
  from shutil import copyfileobj
  from warnings import warn
  from igraph._igraph import GraphBase
  from igraph.utils import named_temporary_file
label_desc: Use image node_id 8 for calling a global function with example usage: _write_graph_to_adjacency_file(graph, f, sep, eol) without return types