Vertex List from Points



I am a total newbie to prolog but have some understanding of graphics.
I have a set of points which are required to be in the form:

Point(a)
Point(b)
Point(c)
Point(d)

And a set of edges of the form:

edge(a,b)
edge(a,c)
edge(b,d)

I've tried several ways to get this into 'normal' form:

[a,b,c,d]

and

[e(a,b),e(a,c),e(b,d)]

But to no avail. Maybe I'm just frustrated with the problem but I
can't work it out in my head.

Latest thing I tried is:

points(L) :- Point(X), append([],[X],L).

But that just gets them out one at a time:

[a]
[b]
[c]
[d]

and not a whole list. I'm very, very frustrated because I feel I have
started to understand prolog when things are given in list form but
can't figure out how to get this data INTO list form.

Any help would be very, very gratefully received!!!!

TIA

.



Relevant Pages

  • Re: Vertex List from Points
    ... > I am a total newbie to prolog but have some understanding of ... graphics. ... with an uppercase letter are variables in Prolog - if so, ...
    (comp.lang.prolog)
  • Re: lists
    ... This process is not unlike the process of developing a Prolog ... description says and you test that understanding by seeing if it can be ... is never re-prioritized with respect to existing goals as the agent ...
    (comp.lang.prolog)
  • Problem mit pdf und pst-pdf
    ... graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics ... graphics.sty 2001/07/07 v1.0n Standard LaTeX Graphics ... Unknown in Prolog section at line 97: ...
    (de.comp.text.tex)
  • Re: Prolog for the AI part of games
    ... I am not aware of Prolog use for large, popular, commercial games such ... with such extreme graphics. ... I have seen Prolog used in games like chess (I even have a Prolog ...
    (comp.lang.prolog)
  • Re: Going to FAIL coursework!
    ... > - it makes sense in English, but when it comes to putting it in ProLog, I ... > the answer to this question - I'm not fundamentally understanding something ... But the Prolog processor has very limited understanding and can't ...
    (comp.lang.prolog)