This repository includes a set of scripts and other tools to play with the graphs created by SourceCred
convert_cred_to_graph: Converts CRED graphs (cred.jsonfiles) into other kind of graphs using the igraph-python libraryconvert_credResult_to_graph: Converts CRED graphs (credResult.jsonfiles) into other kind of graphs using the igraph-python library. The format of the input CRED graph must be a JSON file generated by the cli2 command. This file follows the credResult.js type definitionconvert_outputV2_to_graph: Converts CRED graphs (output.jsonfiles) into other kind of graphs using the igraph-python library. This version of the script supports the new output v2 format added by this commitconvert_graph_to_D3JSON: Convert graphs (formats supported by igraph-python library, i.e., the output of the previous scripts) into a D3-comaptible JSONconvert_graph_to_graph: Converts CRED graphs (graph.jsonfiles) into other kind of graphs using the igraph-python library
view_graph.py: Shows igraph-supported graph filesview_graph_D3.html: HTML page using the JSON output ofconvert_graph_to_D3JSONto visualize the graph using D3
inject_weidght_to_graph.py: Injects a weights definition into a cred graph definition (created by the cli2 graph command)
analyze_credResult_cred.py: Generates a CSV file from credResult graphs summarizing the cred accumulated per node in the graphanalyze_credResult_contributors.py: Generates a CSV file from credResult graphs summarizing the contributions of the user nodes in the graphjoin_csvs.py: Given two CSVs generated byanalyze_credResult.py, this script joins the CSV data by selecting only users (USERLIKE) rows and joining via their username. The result is printed in STDOUTdigest_csvs.py: Generates an HTML page (via STDOUT) including tables for the data generated by join_csvs.py script.
view_graph_D3_codersVScommenters.html: HTML page that does the same asview_graph_D3.htmlplus changing the color of nodes according to cred values in the node. Please, check the comments at the header file