Visualising Java data structures as graphs

  • Authors:
  • John Hamer

  • Affiliations:
  • University of Auckland, Auckland, New Zealand

  • Venue:
  • ACE '04 Proceedings of the Sixth Australasian Conference on Computing Education - Volume 30
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a simple, general-purpose tool for visualising Java data structures. The tool uses Java reflection and an open-source graph drawing program to produce text-book quality depictions of arbitrary Java objects.The tool offers certain pedagogical advantages over other "heavy-weight" visualisation systems. Its simplicity and generality means that students are able to visualise their own data structures, rather than passively observing a limited range of "correct" visualisations prepared in advance by the lecturer.The tool supports an active, exploratory style of learning, and is ideally suited for use in CS1-level courses that introduce Java references and arrays, as well as a range of CS2-level data structure material. Initial classroom results are encouraging.