[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Weight & bool variable

From: Gábor Csárdi
Subject: Re: [igraph] Weight & bool variable
Date: Wed, 29 Jan 2014 11:22:36 -0500

On Wed, Jan 29, 2014 at 11:18 AM, Ragia Ibrahim <address@hidden> wrote:
kindly please :
I had a graph, i can assign weight for each edge, but can i assign other properties such as bool variable or other second weight.

Yes, you can assign arbitrary attributes. See http://igraph.sourceforge.net/doc/R/attributes.html

Also how can i write "  each v belongs to set of V's " where V is nodes.
or should i write it in for statement :   for i in 1: lenght of v do

I am not quite sure what you are asking, but if you want to iterate over the vertices, you can just do 

for (i in V(g)) { ... }

replying is highly appreciated

igraph-help mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]