igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Re: Should igraph_adjlist have an argument IGRAPH_OUT or IG


From: Gábor Csárdi
Subject: Re: [igraph] Re: Should igraph_adjlist have an argument IGRAPH_OUT or IGRAPH_IN?
Date: Mon, 4 May 2009 15:06:56 +0200

Yeah, that is basically right. I thought that an out-adjlist should be
enough, but apparently, it is not.

Because this is an API change, we can have it in version 0.6 only, I
opened a bug report and will do it soon:
https://bugs.launchpad.net/igraph/+bug/371654

Thanks and Best,
Gabor

On Sun, May 3, 2009 at 9:10 PM, Paul Johnson <address@hidden> wrote:
> I'm very sorry, gmail sent that one before I was ready to.  Here's the
> full question.
>
> Thanks to your tip last week, I've got my Objective-C program running
>  with igraph routines.
>
>  I have noticed one wrinkle that I need to ask about.
>
>  I've created an empty graph, taken from it the adjacency lists and
>  filled them up with nodes. Because my model is organized so that each
>  target agent keeps a list of others that can influence it, I create
>  the adjacency list with
>
>    igraph_adjlist_init(&graph, &myAList, IGRAPH_IN);
>
> Everything seems fine, except when I convert that back to a graph, the
> directions are all backwards.  I do it like this:
>
>    igraph_adjlist(&graph, &myAList, 1, 0);
>
> I didn't notice the arrows were backwards at first, but after some
> checking I'm a bit stumped that igraph_adjlist is declared like this:
>
>  int igraph_adjlist(igraph_t *graph, const igraph_adjlist_t *adjlist,
>  igraph_bool_t directed, igraph_bool_t duplicate);
>
> There's no option to specify IGRAPH_IN so it knows the direction of
> the new graph.
>
> See what I mean?
>
>
> --
> Paul E. Johnson
> Professor, Political Science
> 1541 Lilac Lane, Room 504
> University of Kansas
>
>
> _______________________________________________
> 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]