rostok.graph_grammar.crossovers
Module Attributes
|
If node is available for replacement, returns true Args: 1 List[Node]: in nodes (predecessors) 2 List[Node]: out nodes (successors) 3 Node: Replacer |
Functions
|
|
|
Returns a list of ids for which the check_neighbors condition is true. check_neighbors iterate over all nodes and their neighbors Args: replacer_node (Node): _description_ graph (rostok_graph.GraphGrammar): _description_ check_neighbors (CALLBACK_NEIGHBORS_TYPE): _description_. |
|
Search for available replacement IDs. |
|
|
|
|
|
|
|
|
|
|
|
Swap random subtrees from graphs |
|
Swaps two subtrees selected by id |