Re: Subgraphs enumeration
- From: Markus Triska <e0225855@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 14 Feb 2007 17:20:36 +0100
phantastic@xxxxxxxxxx writes:
sub1([],[]).
sub1([H|T],X):-
sub1(T,C),
append(C,[[H]],X).
What about:
sub1([], []).
sub1([E|Es], [[E]|Rest]) :- sub1(Es, Rest).
but i've no idea as i realize sub2... any help?
Beat this:
sub2(Gs) :-
g(G),
findall([E1,E2], (member(E1, G),member(E2, G),E1 @< E2), Gs).
.
- Follow-Ups:
- Re: Subgraphs enumeration
- From: phantastic
- Re: Subgraphs enumeration
- References:
- Subgraphs enumeration
- From: phantastic
- Subgraphs enumeration
- Prev by Date: Subgraphs enumeration
- Next by Date: Re: Newbie out of depth in sudoku solver.
- Previous by thread: Subgraphs enumeration
- Next by thread: Re: Subgraphs enumeration
- Index(es):