[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] A very elementary question
From: |
Moses Boudourides |
Subject: |
Re: [igraph] A very elementary question |
Date: |
Sat, 8 Jan 2011 22:22:38 +0100 |
Thank you, Tamás, but I have to admit that I'm not so advanced in R or
Python to do this myself. So, I would appreciate if you could give me
the functions and the code too. Or at least an example.
As I was telling you I'm importing the data of a weighted directed
graph from Pajek through read.pajek.
Thanks again,
--Moses
On Sat, Jan 8, 2011 at 10:13 PM, Tamás Nepusz <address@hidden> wrote:
> Hello,
>
>> I'm a novice in igraph and, thus, I have a rather facile question that
>> I ought to know the answer. Is it possible to plot a weighted directed
>> graph in igraph?
> Yes, it is. Using the R interface, you can either write the weights
> explicitly on the edges using edge labels or decide to vary the edge width
> according to the weight. Using the Python interface, you have to represent
> the edges by varying the edge widths as the Python interface supports no
> labels yet. Edge widths can be varied by assigning the desired width to the
> "width" edge attribute. Edge labels in R can be varied by assigning the
> desired labels to the "label" edge attribute.
>
>> And how could the nodes be denoted by their labels?
> Simply assign the labels to the "label" vertex attribute and they will be
> plotted automatically.
>
> --
> Tamas
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>