rostok.graph_grammar.graphgrammar_explorer

Functions

create_graph_from_seq(seq)

Applies the rules from the list in direct order

number_of_non_terminal_rules(seq)

Calculate number of nonterminal rules by using is_terminal method from class graph_grammar.Rule

random_search_mechs_n_branch(rule_vocabul[, ...])

Randomly applies rules until it gets candidates with desired_branch or reaches max_tries

ruleset_explorer(limit_non_terminal, rule_vocab)

Recursive iterate over all posible graph in rule_vocab with limitation on non-terminal rules.