I'm new to answer set programming and could use some help. I've been reading this, but still could use some help. How would I use answer set programming to tell if a graph is strongly connected?
My brainstorming:
Graph represented by nodes and edges (ie; node(1..2), edge(1,2), and edge(2,1)).
Now I need rule "strong() :- ......" that is true if the graph is strongly connected.
A graph is strongly connected if you can start at any node and reach any other node by following the edges in the direction(s) they point.
So my program needs to take each node X and go along the directed edges to try and reach every other node. True if it reaches every other node, False otherwise.
Strong() :- ?