INNER CODE UNIT · Python

generate_graph

crocs-muni/JCAlgTest · AlgTest_Process/cplc.py:282

def generate_graph(cplc_list, vendor_name_filter):
    """
    Visualize CPLC information from the list of cards
    @param cplc_list: list of hash maps (with CPLC metadata) for the cards to process and visualize
    @param vendor_name_filter: if empty string '', then all vendors are printed, otherwise only the provided vendor is generated
    """
    dot2 = Digraph(comment='Vendor={}, CPLC from JCAlgTest.org'.format(vendor_name_filter))
    graph_label = ''
    #graph_label = 'Vendor={}, CPLC visualization (JCAlgTest.org database)\n'.format(vendor_name_filter)
    graph_label += 'ICFabricator → ICFab_ICType → OperatingSystemID → OperatingSystemID_OSReleaseDate → OSReleaseLevel → CardName → Original vendor → Current vendor\n.'
    dot2.attr('graph', label=graph_label, labelloc='t', fontsize='33')
    dot2.attr(rankdir='LR', size='8,5')

    ic_fabs_types = []  # information in CSV format
    for file_cplc in cplc_list:
        cplc_values = cplc_list[file_cplc]
    
        if 'ICFabricator' in cplc_values:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…