def collect_rules_groups_edges()

in visualize_rules_graph.py [0:0]


def collect_rules_groups_edges():
    for config_path in args.configurations_path:
        config_path = os.path.abspath(config_path) + os.path.sep
        rules_file = config_path + 'rules.toml'

        # rules.toml should exist, deliberately fail otherwise
        rules_toml_dict = toml.load(rules_file)
        collect_rules_and_groups(rules_toml_dict)

        # edges are optional for input rules (i.e., non built-in)
        edges_file = config_path + 'edges.toml'
        if os.path.exists(edges_file):
            edges_toml_dict = toml.load(edges_file)
            collect_edges(edges_toml_dict)