igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] version doubt


From: Gábor Csárdi
Subject: Re: [igraph] version doubt
Date: Sat, 8 Sep 2012 21:59:59 -0400

On Sat, Sep 8, 2012 at 9:49 PM, Guilherme Ferraz de Arruda
<address@hidden> wrote:
> No problem. That's ok.
> I need to ask you one more question. About the vertex indexing, it
> starts from zero at C, isn't it? This kind of things didn't changed,
> isn't it?

Yes, in C it starts from zero of course. It only changed in R, because
in R the convention is 1-based indexing, and igraph had it zero-based.

In C it was always zero-based, and always will be! :)

G.

> Thanks a lot!
>
> 2012/9/8 Gábor Csárdi <address@hidden>:
>> I am sorry, there was some confusion on my side. I thought you are
>> using the R version, and not the C version.
>>
>> First of all, if you are using the C library, then version 0.6 is not
>> binary compatible, but most code works without problems. You might get
>> a few error messages in compilation time, because some of the API has
>> changed, but then it does not take long to check the new documentation
>> and updated your code.
>>
>> So you don't need to install both libraries, just remove the debian
>> package for version 0.5.x, and install version 0.6 by hand, i.e.
>> download the source code from http://igraph.sf.net, run
>>
>> ./configure
>> make
>> make install
>>
>> This installs igraph into /usr/local/*.
>>
>> Sorry again for the confusion!
>> Best,
>> Gabor
>>
>> On Sat, Sep 8, 2012 at 9:01 PM, Guilherme Ferraz de Arruda
>> <address@hidden> wrote:
>>> I use the debian system. In fact my version is 0.5.3.
>>> How can i install the 0.6? Is there any repository?
>>> I could not understand how to keep both libraries. May I install manually?
>>> When i compile a program i use the flag "-ligraph" How things will be
>>> be with both libraries?
>>> Thanks a lot
>>>
>>> 2012/9/8 Gábor Csárdi <address@hidden>:
>>>> Hi,
>>>>
>>>> no, they are not compatible. igraph 0.6 indexes vertices and edges
>>>> from 1, whereas 0.5.x indexes vertices and edges from zero. It is most
>>>> likely that your code needs to be updated. There were other changes as
>>>> well.
>>>>
>>>> If you want to keep using your code, you can use the igraph0 package,
>>>> which is the same as igraph 0.5.x. This way you can also install
>>>> version 0.6 and use it for new code.
>>>>
>>>> Note, however, that using both packages at the same time is tricky
>>>> because the function names are mostly the same, and some of the
>>>> generic functions defined in version 0.6. So double check your results
>>>> if you need to load both packages at the same time.
>>>>
>>>> Best,
>>>> Gabor
>>>>
>>>> On Sat, Sep 8, 2012 at 3:21 PM, Guilherme Ferraz de Arruda
>>>> <address@hidden> wrote:
>>>>> Hi all,
>>>>> I use the igraph 0.5.4. I'm thinking about  update to the 0.6 version,
>>>>> but I need to know if this two versions are compatible. May I need to
>>>>> change my old sorce codes? Is this changing really necessary?
>>>>> Thanks a lot.
>>>>>
>>>>> Guilherme.
>>>>>
>>>>> _______________________________________________
>>>>> igraph-help mailing list
>>>>> address@hidden
>>>>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>>>>
>>>>
>>>>
>>>> --
>>>> Gabor Csardi <address@hidden>     MTA KFKI RMKI
>>>>
>>>> _______________________________________________
>>>> igraph-help mailing list
>>>> address@hidden
>>>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>>>
>>> _______________________________________________
>>> igraph-help mailing list
>>> address@hidden
>>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>>
>>
>>
>> --
>> Gabor Csardi <address@hidden>     MTA KFKI RMKI
>>
>> _______________________________________________
>> igraph-help mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help



-- 
Gabor Csardi <address@hidden>     MTA KFKI RMKI



reply via email to

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