update graphviz interface
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1214 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
319207d3c6
commit
94b1984a7f
@ -18,8 +18,7 @@ output_var(Stream, V) :-
|
||||
format(Stream, ' [ shape=box, style=filled, fillcolor=red, fontsize=18.0 ]~n',[]),
|
||||
fail.
|
||||
output_var(Stream, V) :-
|
||||
clpbn:get_atts(V,[key(Key),dist(DInfo)]),
|
||||
extract_parents(DInfo,Parents),
|
||||
clpbn:get_atts(V,[key(Key),dist(_,_,Parents)]),
|
||||
Parents = [_|_], !,
|
||||
format(Stream, ' ',[]),
|
||||
output_parents(Stream, Parents),
|
||||
@ -52,13 +51,6 @@ output_parents1(Stream,[V|L]) :-
|
||||
output_parents1(Stream,L).
|
||||
|
||||
|
||||
extract_parents(tab(_,_),[]).
|
||||
extract_parents(tab(_,_,Parents),Parents).
|
||||
extract_parents((sum.Parents->_),Parents) :- !.
|
||||
extract_parents((normalised_average(_).Parents->_),Parents) :- !.
|
||||
extract_parents(([_|_].Parents->_),Parents) :- !.
|
||||
extract_parents((_->_),[]).
|
||||
|
||||
output_key(Stream, Key) :-
|
||||
output_key(Stream, 0, Key).
|
||||
|
||||
|
Reference in New Issue
Block a user