title: LaTeX - Adding node labels above a sorted list of edges for a weighted graph
body: <p>This seems like it would be fairly simple, but I've been unable to find anything about how to do this on the web. I'm writing the steps for Kruskal's algorithm.  I need to create a list of edges sorted by weight, with labels above the weight referencing the edges, something like this:</p>
  
  <pre><code>a-b b-c c-e
   1   3   5  ...
  </code></pre>
  
  <p><em>Design and Analysis of Algorithms</em> by Anany Levitin uses similar formatting on p. 316. If there are no other options, I suppose verbatim might work, though I was hoping to make it look a little nicer.  Any recommendations?</p>