Graph generator

create_networkx_graph_from_input_ids(cipher)

Generates a directed graph derived from the components IDs of a given cipher.

INPUT:

  • cipherobject; 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:

  • cipherobject; The cipher from which the subgraphs will be derived.

  • e0_bottom_idslist; List of component IDs used to define the predecessors for the top-graph.

  • e1_top_idslist; List of component IDs used to define the descendants for the bottom-graph.