[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] problem of igraph_degree_sequence_game() ?
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] problem of igraph_degree_sequence_game() ? |
Date: |
Sun, 28 Dec 2008 11:11:37 +0100 |
Hi,
the problem is that the sum of the degrees is odd, there is obviously
no graph with the given degree sequence.
But thanks for reporting this, anyway, this is still a bug, igraph
should not crash, but give an error message. I'll correct it.
Thanks again,
Gabor
On Sun, Dec 28, 2008 at 4:00 AM, fa <address@hidden> wrote:
> Dear All:
>
> When I build a degree sequence of (4,4,3,2,2,2,1) graph.
> It will show crash,when I run it.
>
> Thanks
>
> ----------------------------------------------------------------------------------
> my code:
>
>
> #include <igraph\igraph.h>
> main()
> {
> igraph_vector_t degree_vector;
> igraph_t network;
> igraph_vector_init(°ree_vector,8);
>
> igraph_vector_set(°ree_vector,0,4);
> igraph_vector_set(°ree_vector,1,4);
> igraph_vector_set(°ree_vector,2,3);
> igraph_vector_set(°ree_vector,3,2);
> igraph_vector_set(°ree_vector,4,2);
> igraph_vector_set(°ree_vector,5,2);
> igraph_vector_set(°ree_vector,6,1);
> igraph_vector_set(°ree_vector,7,1);
>
> igraph_degree_sequence_game(&network,°ree_vector,0,IGRAPH_DEGSEQ_VL);
>
> igraph_vector_destroy(°ree_vector);
> igraph_destroy(&network);
>
>
>
> }
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
--
Gabor Csardi <address@hidden> UNIL DGM