title: C++ vs Java for simple graphics
body: <p>I want to develop a program that topologically sorts the vertices of a directed graph as a way to practice some of the graphing data structures and algorithms I'm learning in algorithms class. To make things a bit more interesting, I also want to add some graphics to display the results of the topological sort, something like in image b) below.</p>
  
  <p><img src="https://i.stack.imgur.com/tynay.png" alt="enter image description here"></p>
  
  <p>I'm familiar with the basics of both C++ and Java, so I'll be choosing one of those languages to work in. First, what are the pros and cons of working in each language for a project like this? Second, what kind of libraries should I look at to implement these kinds of simple graphic? I know that there are lots of choices out there, but I'd like to choose something that I might use again in the future and isn't total overkill for a task like this.</p>
  
  <p>Thanks</p>