P
Piet den Dulk
Dear Programmers,
I want to write the euler tour in java. The rules of the euler tour is to
cross every bridge once and finish at the node where you started. You can
represent the bridges and nodes as a graph.
I want to store that graph with a certain datastructure in my program but I
don't know wich datastructure I have to use. So when you draw the bridges
and the nodes the items have to be stored in that datastructure. I'm only
familiar with the following datastructures: Linked Lists, Binary Trees,
General Trees, Stracks and Queues. But I don't see a graph in any of these
structures. Can anyone tell me what datastructure is needed to store a graph
like this one.
best regards,
Piet den Dulk
I want to write the euler tour in java. The rules of the euler tour is to
cross every bridge once and finish at the node where you started. You can
represent the bridges and nodes as a graph.
I want to store that graph with a certain datastructure in my program but I
don't know wich datastructure I have to use. So when you draw the bridges
and the nodes the items have to be stored in that datastructure. I'm only
familiar with the following datastructures: Linked Lists, Binary Trees,
General Trees, Stracks and Queues. But I don't see a graph in any of these
structures. Can anyone tell me what datastructure is needed to store a graph
like this one.
best regards,
Piet den Dulk