code: def read_snapshots(path, comments="#", directed=False, delimiter=None,
                     nodetype=None, timestamptype=None, encoding='utf-8', keys=False):
      
      ids = None
      lines = (line.decode(encoding) for line in path)
      if keys:
          ids = read_ids(path.name, delimiter=delimiter, timestamptype=timestamptype)
  
      return parse_snapshots(lines, comments=comments, directed=directed, delimiter=delimiter,  nodetype=nodetype,
                             timestamptype=timestamptype, keys=ids)
docs: Read a DyNetx graph from snapshot graph list format.
  
  
          Parameters
          ----------
  
          path : basestring
              The desired output filename
  
          delimiter : character
              Column delimiter