ERROR: uhook/3: Undefined procedure: adjs:attr_unify_hook/2
for example, I get this error if I include delete(OldVertices, Node, NewVertices) in my program.
I also get the exact same error if i am storing my vertices in a binary heap, and try to delete a vertex from the heap using delete_from_heap.
I was able to successfully use delete and delete_from_heap on the node if I first delete all of it's attributes, but this causes problems for my program because I want to use the attributes later on, I just don't want the node to be contained in the list or binary heap.
Is this a bug, or am I handling attribute variables incorrectly? Any suggestions would be appreciated.
Thanks in advance,
Suraj
?- TLO = [3-A, 4-B], put_attr(A, dist, 3),put_attr(B, dist, 4), list_to_heap(TLO, H), delheap(H, A, Hq).
Correct to: "dijkstra_av:delheap(H,A,Hq)"? yes
TLO = [3-A, 4-B], H = heap(t(A, 3, [t(B, 4, [])]), 2), Hq = heap(t(B, 4, []), 1), put_attr(A, dist, 3), put_attr(B, dist, 4).
Which works fine, but when I try with B :
TLO = [3-A, 4-B], put_attr(A, dist, 3), put_attr(B, dist, 4), list_to_heap(TLO, H), delheap(H, B, Hq). Correct to: "dijkstra_av:delheap(H,A,Hq)"? yes TLO = [3-A, 4-B], false.
Any idea on what could be going wrong with this implementation?
Thanks,
Suraj