docs: def write_adj_list(self, path: str) -> None:
          """Write the network as an adjacency list to a file.
  
          :param path: File path to write the adjacency list.
          """
          adj_list = self.get_adjlist()
  
          with open(path, mode="w") as file:
              for i, line in enumerate(adj_list):
                  print(i, *line, file=file)