Good morning,
hope all are well.
I properly have discovered a bug in the GraphDistanceFitler of the flare
toolkit.
It seems to me that the depth is not set correctly if the filter is
traversing GRAPH_LINKS. The modification I applied which seems to fix that
problem
/** ------ start of modification */
//xn = (depths[xe.source] == undefined ? xe.source : xe.target); //original
coding
if (depths[xe.source] == undefined) {
xn = xe.source;
} else if (depths[xe.target] == undefined) {
xn = xe.target;
} else {
continue; //both nodes have been visited already (graph traversal)
}
/** ------ end of modification */
The original coding assumes that at least one of the two connected nodes
haven't been visited yet, which might be wrong in the case of a graph link
traversal.
Cheers and happy prefusing
martin
Nobody/Anonymous
None
None
Public
| Filename | Description | Download |
|---|---|---|
| GraphDistanceFilter.as | modified graph distance filter | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2008-07-30 04:08 | jheer |
| resolution_id | None | 2008-07-30 04:08 | jheer |
| close_date | - | 2008-07-30 04:08 | jheer |
| File Added | 271705: GraphDistanceFilter.as | 2008-03-25 04:57 | goosebumps4all |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use