Hello, I have basic knowledge about prolog and I am facing problems in writing the prolog code for the following problem: Write the fact about the above figure and writ
edge(ne,n1). edge(n1,n2). edge(n1,n3). edge(n3,n7). edge(n7,nx). edge(n3,n4). edge(n4,n5). edge(n5,nx). edge(n4,n6). edge(n6,nx). pos_path(A, B, Path) :- path(edge, Path, A, B).
using path/4 defined in another question.