6

Is there any Java library to visualize common data structures (viz.stack queue LL etc) and their access methods? I just want to simulate what my data structure is doing..

username_4567
  • 4,737
  • 12
  • 56
  • 92

3 Answers3

2

If you just want to visualize the data, check out JUNG:

http://jung.sourceforge.net/

If you're talking about visualizing what your code is doing to the data, JUNG might still help with that, but just Google searching gave me a lot of results, so try that.

Jon Egeland
  • 12,470
  • 8
  • 47
  • 62
  • I know this library but it is useful for graph algorithms but for simple data structures(stack,queue etc) u know any other library? – username_4567 Dec 07 '11 at 12:39
  • Do you want to graph the data? or display what you are doing to the data? – Jon Egeland Dec 07 '11 at 12:40
  • your best bet may be to go with a network graph - such as github's "Network Graph Viewer" - which would show data being "merged" into and "branched" out of your structure. – Jon Egeland Dec 07 '11 at 12:52
0

I didn't quite understand your questions:

Do you:

1) want to learn how they work? try google, you will find many good applets which explain the working of algorithms and data structures through simple animation.

2) want to see the behavior in your app, run the app in debug mode.

Vicky
  • 16,679
  • 54
  • 139
  • 232
  • No i want a framework which will simulate my data structure eg.if i push element into stack it should visually show me that element is being pushed..a kind of visual debugger...my need is only for some common data structures..not all – username_4567 Dec 07 '11 at 12:42
0

You can also use JGraphT.

You can find relevant discussion here: Stackoverflow - Good Java Graph Algorithm Library

Community
  • 1
  • 1
bchetty
  • 2,231
  • 1
  • 19
  • 26