original_docstring:  For MLC storage, unpack adjacency matrix according to MLC settings
  
    :param M: adjacency matrix representing stored graph, packed according to MLC storage settings
    :param bpc: bits-per-cell for MLC storage format
    
docstring: For MLC storage, unpack adjacency matrix according to MLC settings
docstring_tokens: For MLC storage unpack adjacency matrix according to MLC settings
code: def unpack_bits(M_pack, bpc=2): #unpack multiple bits per matrix entry according to storage density
    """ For MLC storage, unpack adjacency matrix according to MLC settings
  
    :param M: adjacency matrix representing stored graph, packed according to MLC storage settings
    :param bpc: bits-per-cell for MLC storage format
    """
    nodes = len(M_pack) #this is still the number of nodes
    entries = int(np.ceil(nodes/bpc))
    M = np.zeros((nodes, nodes))
    for n in range(nodes):
      for e in range(entries):
        val = int(M_pack[n][e])
        for b in range(bpc):
          dst = e*(bpc)+b
          #print(n, e, val, n, dst, M[n][dst])
          if (dst) >= nodes:
            continue
          mask = 1 << b
          if (mask & val) > 0:
            M[n][dst] = 1
  
    #print(M)
    return M
code_tokens: def unpack_bits ( M_pack , bpc = 2 ) : nodes = len ( M_pack ) entries = int ( np . ceil ( nodes / bpc ) ) M = np . zeros ( ( nodes , nodes ) ) for n in range ( nodes ) : for e in range ( entries ) : val = int ( M_pack [ n ] [ e ] ) for b in range ( bpc ) : dst = e * ( bpc ) + b if ( dst ) >= nodes : continue mask = 1 << b if ( mask & val ) > 0 : M [ n ] [ dst ] = 1 return M
short_docstring: For MLC storage, unpack adjacency matrix according to MLC settings
short_docstring_tokens: For MLC storage unpack adjacency matrix according to MLC settings
comment: #unpack multiple bits per matrix entry according to storage density$SEP$""" For MLC storage, unpack adjacency matrix according to MLC settings
  
    :param M: adjacency matrix representing stored graph, packed according to MLC storage settings
    :param bpc: bits-per-cell for MLC storage format
    """$SEP$#this is still the number of nodes$SEP$#print(n, e, val, n, dst, M[n][dst])$SEP$#print(M)