package acgtk
Module MagicRewriting.RggSource
Module to handle the Rule/Goal Graph construction.
12.8 Rule/Goal Graph see p 795-799 of Principles of Database and Knowledge-Base Systems II, Ullman
Log is the log module for Rgg
Source
type rule_node = {rule : ASRule.rule;adorned_head : Adornment.status list;position : int;bound_vars : ASPred.TermSet.t;free_vars : ASPred.TermSet.t;
}Source
type vertex = | Goal of ASPred.predicate * Adornment.status list| Rule of rule_node(*A node is either a Goal or a Rule
*)
graph_to_dot rgg program filename Build a dot file from a rgg graph
build_rgg program query Build the rule/goal graph for program and query.