cgexplore.scram.Configuration

class cgexplore.scram.Configuration(idx, node_types, node_idx_dict)[source]

Bases: object

Naming convention for graph node configurations.

Methods

get_hashable_idx_dict

Get a hashable representation of the dictionary.

get_node_dictionary

Get the node dictionary.

Attributes

Parameters:
get_hashable_idx_dict()[source]

Get a hashable representation of the dictionary.

Return type:

Sequence[tuple[int, Sequence[int]]]

get_node_dictionary()[source]

Get the node dictionary.

This is equivalent to the building block dictionary you need, where each key is a type of building block with a set number of connections.

Return type:

dict[NodeType, Sequence[int]]

idx: int
node_idx_dict: dict[int, Sequence[int]]
node_types: dict[NodeType, int]