def dump(bqm, fp, vartype_header=False):
    """Dump a binary quadratic model to a string in COOrdinate format."""
    for triplet in _iter_triplets(bqm, vartype_header):
        fp.write('%s\n' % triplet)
def dump ( bqm , fp , vartype_header = False ) : for triplet in _iter_triplets ( bqm , vartype_header ) : fp . write ( '%s\n' % triplet )
Dump a binary quadratic model to a string in COOrdinate format.