Graph representation in Dr Scheme
- by John Retallack
I want to represent a graph in Dr. Scheme in the following manner:
For each node I want to store it's value and a list of adjacent nodes,the problem which i'm having difficulties with is that I want the adjacent nodes to be stored as references to other nodes.
For example: I want node ny to be stored as („NY“ (l p)) where l and p are adjacent nodes,and
not as („NY“ („London“ „Paris“)).