[Top][All Lists]

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

Re: [igraph] Question on max id node

From: Tamas Nepusz
Subject: Re: [igraph] Question on max id node
Date: Sun, 9 Mar 2008 19:24:54 +0100

Hi Richard,

Is there a function that provides the value of the largest node id in
the imported graph?
If you are using C (I assume you do), try to attach the C attribute handler and then read your graph using igraph_read_graph_ncol (this is for the NCOL format which is practically a named edge list). This is able to store the vertex names used in the NCOL file as a vertex attribute. After that, you can scan the attribute values to find the largest one.

See http://cneurocvs.rmki.kfki.hu/igraph/doc-0.5/html/ch09s02.html for the usage of the C attribute handler.


reply via email to

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