Software Cartography: thematic software visualization with consistent layout

  • Authors:
  • Adrian Kuhn;David Erni;Peter Loretan;Oscar Nierstrasz

  • Affiliations:
  • Software Composition Group, University of Bern, Switzerland;Software Composition Group, University of Bern, Switzerland;Software Composition Group, University of Bern, Switzerland;Software Composition Group, University of Bern, Switzerland

  • Venue:
  • Journal of Software Maintenance and Evolution: Research and Practice - Working Conference on Reverse Engineering (WCRE 2008)
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Software visualizations can provide a concise overview of a complex software system. Unfortunately, as software has no physical shape, there is no ‘natural’ mapping of software to a two-dimensional space. As a consequence most visualizations tend to use a layout in which position and distance have no meaning, and consequently layout typically diverges from one visualization to another. We propose an approach to consistent layout for software visualization, called Software Cartography, in which the position of a software artifact reflects its vocabulary, and distance corresponds to similarity of vocabulary. We use Latent Semantic Indexing (LSI) to map software artifacts to a vector space, and then use Multidimensional Scaling (MDS) to map this vector space down to two dimensions. The resulting consistent layout allows us to develop a variety of thematic software maps that express very different aspects of software while making it easy to compare them. The approach is especially suitable for comparing views of evolving software, as the vocabulary of software artifacts tends to be stable over time. We present a prototype implementation of Software Cartography, and illustrate its use with practical examples from numerous open-source case studies. Copyright © 2010 John Wiley & Sons, Ltd. A short version of the paper was previously published in the Proceedings of 15th Working Conference on Reverse Engineering (WCRE'08), IEEE Computer Society Press, Los Alamitos CA, October 2008, pp. 209–218. We propose Software Cartography, a novel software visualization that provides developers with a ‘spatial’, ‘stable’, and ‘shared’ mental model of their software system. We apply Multidimensional Scaling to achieve a visual layout that is stable over the time of software evolution; for the distance between software artifacts we use the lexical similarity, i.e. how many words to files that source code have in common. We outline both an online and an offline algorithm and how both yield stable results. Copyright © 2010 John Wiley & Sons, Ltd.