Fixed bug in coreness.

This commit is contained in:
Alex Gutteridge 2009-08-13 09:44:27 +01:00
parent 1c9751e0ed
commit e703a40958
5 changed files with 3 additions and 7 deletions

View File

@ -3,7 +3,7 @@ require 'hoe'
$LOAD_PATH.unshift("./ext")
class IGraph
VERSION = "0.9.6"
VERSION = "0.9.7"
end
#begin

View File

@ -121,8 +121,6 @@ VALUE cIGraph_community_spinglass(VALUE self, VALUE weights, VALUE spins, VALUE
VALUE groups;
VALUE res;
VALUE str;
int i,groupid,max_groupid;
if(parupdate)

View File

@ -29,7 +29,7 @@ VALUE cIGraph_coreness(VALUE self, VALUE mode){
igraph_coreness(graph,&cores,pmode);
for(i=0; i< igraph_vector_size(&cores); i++){
rb_ary_push(result,VECTOR(cores)[i]);
rb_ary_push(result,INT2NUM(VECTOR(cores)[i]));
}
igraph_vector_destroy(&cores);

View File

@ -8,8 +8,6 @@ igraph_integer_t cIGraph_get_vertex_id(VALUE graph, VALUE v){
VALUE idx;
igraph_t *igraph;
VALUE str;
Data_Get_Struct(graph, igraph_t, igraph);
v_ary = ((VALUE*)igraph->attr)[0];

View File

@ -3,7 +3,7 @@
Gem::Specification.new do |s|
s.name = %q{igraph}
s.version = "0.9.6"
s.version = "0.9.7"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Alex Gutteridge"]