|
From: | Tamas Nepusz |
Subject: | Re: [igraph] Question on max id node |
Date: | Sun, 9 Mar 2008 19:24:54 +0100 |
Hi Richard,
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.Is there a function that provides the value of the largest node id in the imported graph?
See http://cneurocvs.rmki.kfki.hu/igraph/doc-0.5/html/ch09s02.html for the usage of the C attribute handler.
-- Tamas
[Prev in Thread] | Current Thread | [Next in Thread] |