igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Problem with igraph_simplify() for C


From: Tamas Nepusz
Subject: Re: [igraph] Problem with igraph_simplify() for C
Date: Wed, 16 Feb 2011 13:44:34 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7

> Ahh now I see. A bit strange that the first entry is always the node
index, especially from igraph_adjedgelist_get
> which seems to do the same. I wouldn't expect it.
igraph_adjedgelist_get is different; that one returns an "adjacency edge
list" representation consisting of i vectors where the ith vector lists
the edges incident on vertex i. (The name is a misnomer and it will be
changed to igraph_inclist_... in igraph 0.6, standing for "incidency list").

igraph_write_edgelist prints the source and target of each edge, one
edge per line, this is called the "edge list" representation as it
simply lists all the edges.

There is also igraph_adjlist_get (with which you have probably confused
with igraph_write_edgelist), which returns an "adjacency list"
representation consisting of i vectors where the ith vector lists the
nodes adjacent to vertex i.

-- 
Tamas




reply via email to

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