Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: [X] Tree/Graph structure in many-to-many relationship, avoiding/detecting circularity
OddesE wrote:
> 1) Is it possible to create an algorithm to detect
The simple solution:
Store the IDs of your added nodes in another datastructure
and search this structure for the ID before you add
a node.
Storing the IDs to a balanced BTree should be the fastest method but even an array will do.
Kind regards,
Carl
--- Carl Rosenberger db4o - database for objects - http://www.db4o.comReceived on Fri Mar 01 2002 - 05:37:40 CST
![]() |
![]() |