igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] number of nodes


From: Gang Su
Subject: Re: [igraph] number of nodes
Date: Tue, 24 Nov 2009 22:09:01 -0500
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

I guess you need igraph_vcount(&g)

Roberto Pagliari wrote:
if I type
printf("number of nodes: %d\n", igraph_vcount(graph));

I get "Bus Error"

On Tue, Nov 24, 2009 at 6:28 PM, Gang Su <address@hidden <mailto:address@hidden>> wrote:

    If you are using R, then it's vcount()
    if you are using C, it's igraph_vcount(*graph)

    Gang

    Roberto Pagliari wrote:

        I need to allocate a vector of the same size of the number of
        nodes, in order to use clustering functions. How do I call
        that function?

        Thanks in advance

        On Tue, Nov 24, 2009 at 6:20 PM, zhengjun chen <zhjchen.sa
        <http://zhjchen.sa> <http://zhjchen.sa>@gmail.com
        <http://gmail.com> <http://gmail.com>> wrote:

           Hi,

           The basic built in function summary() can help you get the
        number
           of nodes of a graph.

           On Tue, Nov 24, 2009 at 9:16 PM, Roberto Pagliari
           <address@hidden <mailto:address@hidden>
        <mailto:address@hidden <mailto:address@hidden>>> wrote:

               Hi All,
               is available any built in function to get the number of
        nodes
               of a graph?

               Thanks

               _______________________________________________
               igraph-help mailing list
               address@hidden <mailto:address@hidden>
        <mailto:address@hidden <mailto:address@hidden>>

               http://lists.nongnu.org/mailman/listinfo/igraph-help




           --    Thanks
           zhengjun

           Graduate research assistant
           Dept of Computer Science and Engineering
           Lehigh University

           _______________________________________________
           igraph-help mailing list
           address@hidden <mailto:address@hidden>
        <mailto:address@hidden <mailto:address@hidden>>

           http://lists.nongnu.org/mailman/listinfo/igraph-help


        ------------------------------------------------------------------------



        _______________________________________________
        igraph-help mailing list
        address@hidden <mailto:address@hidden>
        http://lists.nongnu.org/mailman/listinfo/igraph-help



    _______________________________________________
    igraph-help mailing list
    address@hidden <mailto:address@hidden>
    http://lists.nongnu.org/mailman/listinfo/igraph-help


------------------------------------------------------------------------

_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help





reply via email to

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