Example of a directed graph
Source: The Art of Prolog
Program source code: graph_directed.pl
edge(a,b). edge(a,c). edge(b,d). edge(c,d). edge(d,e). edge(f,g). % Program 2.6: A directed graph