Re: [sage-support] Labeled Graphs

2010-11-28 Thread Stephen Hartke
On Wed, Nov 24, 2010 at 2:20 PM, Minh Nguyen nguyenmi...@gmail.com wrote: But I can't figure out how to get G.show() to display the edge weights. You can just call G.show(edge_labels=True), which displays the vertex names (by default) and the edge labels. Of course, the layout is whatever the

Re: [sage-support] Labeled Graphs

2010-11-26 Thread Johannes
no, that's just a part of what I'm looking for. I need to have a graph with weighted edges _and_ vertices. To stay at your example, the edges are weighted by the distance between the different cities, and each vertex is 'weighted' (or better labeled) by the population of the city. Excactly the

Re: [sage-support] Labeled Graphs

2010-11-25 Thread Eckhard Kosin
Am Mittwoch, den 24.11.2010, 15:51 +0100 schrieb Johannes: Hi list, how do i create a graph where i have a label for each vertex and each edge? Precisely I need to labels for each vertex (like a name and a value). If your main goal is to include a nice graphic of your graph into a

Re: [sage-support] Labeled Graphs

2010-11-24 Thread Minh Nguyen
Hi Johannes, On Thu, Nov 25, 2010 at 1:51 AM, Johannes dajo.m...@web.de wrote: Hi list, how do i create a graph where i have a label for each vertex and each edge? Precisely I need to labels for each vertex (like a name and a value). I'm guessing you want a weighted graph such as the