def json_from_cov_df(df, threshold=<NUM_LIT>, gain=<NUM_LIT>, n=None, indent=<NUM_LIT:1>):
nodes, edges = graph_from_cov_df(df=df, threshold=threshold, gain=gain, n=n)<EOL>return json.dumps({'<STR_LIT>': nodes, '<STR_LIT>': edges}, indent=indent)<EOL>
Produce a json string describing the graph (list of edges) from a square auto-correlation/covariance matrix
       { "nodes": [{"group": 1, "name": "the"},
                {"group": 1, "name": "and"},
                {"group": 1, "name": "our"},
                {"group": 2, "name": "that"},...
         "links": [{"source": 0, "target": 0, "value": 2.637520131294177},
                   {"source": 0, "target": 1, "value": 1.343999676850537}, ...