I need something that will handle something like this gracefully (in java, I'll call the data structure a tree even though it's not)
here
basically I need to have a starting point (head, like a linked list) and be able to traverse the entire tree. Any node can have any number of connections.
I don't need to find nodes but I DO need to be able to compare tree A to tree B to see if they have the same structure. Speed is not an issue as there won't be more than 10 nodes at any given time.
I would place this is in the software forum but the topics in there are too board.
here
basically I need to have a starting point (head, like a linked list) and be able to traverse the entire tree. Any node can have any number of connections.
I don't need to find nodes but I DO need to be able to compare tree A to tree B to see if they have the same structure. Speed is not an issue as there won't be more than 10 nodes at any given time.
I would place this is in the software forum but the topics in there are too board.