igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] reading weighted graph with edgelist format


From: Tamas Nepusz
Subject: Re: [igraph] reading weighted graph with edgelist format
Date: Thu, 24 Jun 2010 08:52:31 +0100

> Can edgelist format read a weighted graph from a file consists of 3 columns, 
> with weights on the 3rd column?
Yes, it is called the NCOL format. (Pass format="ncol" to read.graph). In the 
case of the NCOL format, you can use names instead of vertex IDs in the first 
and second columns; vertex names will be assigned to the "name" vertex 
attribute and edge weights will be assigned to the "weight" edge attribute.

-- 
Tamas




reply via email to

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