Graph generator¶
- create_networkx_graph_from_input_ids(cipher)¶
Generates a directed graph derived from the components IDs of a given cipher.
INPUT:
cipher– object; The cipher used as the basis for the graph model
- split_cipher_graph_into_top_bottom(cipher, e0_bottom_ids, e1_top_ids)¶
Creates two directed sub-graphs based on the components of a cipher. These sub-graphs are termed the “top-graph” and the “bottom-graph”.
The “top-graph” is formed by taking the components that are predecessors of the components specified in e0_bottom_ids. Conversely, the “bottom-graph” includes the components that are descendants of the components specified in e1_top_ids.
INPUT:
cipher– object; The cipher from which the subgraphs will be derived.e0_bottom_ids– list; List of component IDs used to define the predecessors for the top-graph.e1_top_ids– list; List of component IDs used to define the descendants for the bottom-graph.