igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] random generator graph in C


From: Gábor Csárdi
Subject: Re: [igraph] random generator graph in C
Date: Tue, 3 Nov 2009 08:36:10 +0100

On Tue, Nov 3, 2009 at 12:58 AM, alex <address@hidden> wrote:
> Hi, i'm using the igraph directly in my C code. what i do is that i generate
> my graph using the igraph_grg_game function. I have 3 questions:
>
> 1- the two last input for this function igraph_grg_game (2 igraph vector),
> what are they role ? it's not explained in documentation.

Hi, indeed, it isn't, that is a mistake. This function creates a
geometric random graphs and if those two arguments are not null
pointers, then the coordinates of the points are placed there.

> 2- I want to browse my graph generated to computes somes properties for each
> vertices. How can i dot it ?

I am not sure what you mean by 'browsing' your graph.

> 3-  from my random graph, can i have a binary matrix (like igraph_matrix)
> that describes my graph (like topology matrix i.e matrix[i][j] = 1 if i and
> j are connected; 0 otherwise.

The function is called igraph_get_adjacency().

Best,
Gabor

> thank you for your help
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

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