Fixed bug in coreness.
This commit is contained in:
parent
1c9751e0ed
commit
e703a40958
|
@ -3,7 +3,7 @@ require 'hoe'
|
|||
$LOAD_PATH.unshift("./ext")
|
||||
|
||||
class IGraph
|
||||
VERSION = "0.9.6"
|
||||
VERSION = "0.9.7"
|
||||
end
|
||||
|
||||
#begin
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue