Skip to content

Commit

Permalink
Modify example
Browse files Browse the repository at this point in the history
  • Loading branch information
robsimmons committed Jul 21, 2024
1 parent 55936dd commit dd3af3f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/web/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,15 @@ export const GRAPH_GENERATION_EXAMPLE = `
vertex 6.
vertex (minus N 1) :- vertex N, N > 0.
# For each potential edge, we mark it present or absent
# The relation is symmetric: edge X Y == edge Y X
edge X Y is { extant, absent } :- vertex X, vertex Y, X != Y.
edge X Y is Z :- edge Y X is Z.
reachable N N :- vertex N.
reachable Start Y :- reachable Start X, edge X Y is extant.
path N N :- vertex N.
path X Z :- path X Y, edge Y Z is extant.
#demand reachable 0 1.
#demand reachable 5 6.
#forbid reachable 0 6.
#demand path 0 1.
#demand path 5 6.
#forbid path 0 6.
`.trim();

0 comments on commit dd3af3f

Please sign in to comment.