Share

the prefuse visualization toolkit

Tracker: Bugs

5 flare graphdistance filter depths field bug? - ID: 1924891
Last Update: Comment added ( jheer )

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


goose ( goosebumps4all ) - 2008-03-25 04:57

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2008-07-30 04:08
Sender: jheerProject Admin


The fix has been applied as suggested.


Log in to comment.

Attached File ( 1 )

Filename Description Download
GraphDistanceFilter.as modified graph distance filter Download

Changes ( 4 )

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