Flix (programming language): Difference between revisions

Content deleted Content added
m Overview: fmt.
Line 240:
The following Datalog rules compute the [[transitive closure]] of the edge relation:
 
<syntaxhighlight lang="flxprolog">
Path(x, y) :- Edge(x, y).
Path(x, z) :- Path(x, y), Edge(y, z).
Line 286:
The un-directed closure of the graph can be computed by adding the rule:
 
<syntaxhighlight lang="flxprolog">
Path(x, y) :- Path(y, x).
</syntaxhighlight>