diff --git a/History.txt b/History.txt index d7aa16b..d493acc 100644 --- a/History.txt +++ b/History.txt @@ -1,3 +1,11 @@ += 0.3.2 2007-09-03 + +* All 'structural property' functions now complete. + += 0.3.1 2007-08-31 + +* New functions added + = 0.3 2007-08-16 * Over-hauled attribute code diff --git a/Manifest.txt b/Manifest.txt index 165772b..2e5816f 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -2,6 +2,7 @@ History.txt License.txt Manifest.txt README.txt +Rakefile.rb ext/cIGraph.c ext/cIGraph.h ext/cIGraph_add_delete.c @@ -10,17 +11,24 @@ ext/cIGraph_basic_properties.c ext/cIGraph_basic_query.c ext/cIGraph_centrality.c ext/cIGraph_components.c +ext/cIGraph_direction.c ext/cIGraph_error_handlers.c ext/cIGraph_file.c ext/cIGraph_iterators.c +ext/cIGraph_kcores.c ext/cIGraph_layout.c ext/cIGraph_matrix.c ext/cIGraph_operators.c +ext/cIGraph_other_ops.c ext/cIGraph_selectors.c ext/cIGraph_shortest_paths.c +ext/cIGraph_spanning.c +ext/cIGraph_spectral.c ext/cIGraph_topological_sort.c +ext/cIGraph_transitivity.c ext/cIGraph_utility.c ext/cIGraph_vertex_neighbourhood.c +ext/extconf.rb test/tc_add_delete.rb test/tc_attributes.rb test/tc_basic_properties.rb @@ -28,14 +36,21 @@ test/tc_basic_query.rb test/tc_centrality.rb test/tc_components.rb test/tc_copy.rb +test/tc_cores.rb test/tc_create.rb +test/tc_directedness.rb test/tc_error_handling.rb test/tc_file_read_write.rb test/tc_iterators.rb test/tc_layout.rb test/tc_matrix.rb +test/tc_other_ops.rb test/tc_selectors.rb test/tc_shortest_paths.rb +test/tc_spanning.rb +test/tc_spectral.rb +test/tc_thrash.rb test/tc_topological_sort.rb +test/tc_transitivity.rb test/tc_vertex_neighbourhood.rb test/test_all.rb diff --git a/ext/cIGraph.c b/ext/cIGraph.c index 8c24f63..30d2949 100644 --- a/ext/cIGraph.c +++ b/ext/cIGraph.c @@ -285,6 +285,13 @@ void Init_igraph(){ rb_define_method(cIGraph, "coreness", cIGraph_coreness, 1); /* in cIGraph_kcores.c */ + rb_define_method(cIGraph, "density", cIGraph_density, 1); /* in cIGraph_other_ops.c */ + rb_define_method(cIGraph, "simplify", cIGraph_simplify, 2); /* in cIGraph_other_ops.c */ + rb_define_method(cIGraph, "reciprocity", cIGraph_reciprocity, 1); /* in cIGraph_other_ops.c */ + rb_define_method(cIGraph, "bibcoupling", cIGraph_bibcoupling, 1); /* in cIGraph_other_ops.c */ + rb_define_method(cIGraph, "cocitation", cIGraph_cocitation, 1); /* in cIGraph_other_ops.c */ + rb_define_method(cIGraph, "get_adjacency", cIGraph_get_adjacency, 1); /* in cIGraph_other_ops.c */ + rb_define_method(cIGraph, "topological_sorting", cIGraph_topological_sorting, 1); /* in cIGraph_topological_sort.c */ rb_define_singleton_method(cIGraph, "read_graph_edgelist", cIGraph_read_graph_edgelist, 2); /* in cIGraph_file.c */ diff --git a/ext/cIGraph.h b/ext/cIGraph.h index 1090d44..222d41d 100644 --- a/ext/cIGraph.h +++ b/ext/cIGraph.h @@ -122,6 +122,14 @@ VALUE cIGraph_coreness(VALUE self, VALUE mode); //Topological sorting VALUE cIGraph_topological_sorting(VALUE self, VALUE mode); +//Other operations +VALUE cIGraph_density (VALUE self, VALUE loops); +VALUE cIGraph_simplify (VALUE self, VALUE mult, VALUE loops); +VALUE cIGraph_reciprocity (VALUE self, VALUE loops); +VALUE cIGraph_bibcoupling (VALUE self, VALUE vs); +VALUE cIGraph_cocitation (VALUE self, VALUE vs); +VALUE cIGraph_get_adjacency(VALUE self, VALUE mode); + //File handling VALUE cIGraph_read_graph_edgelist (VALUE self, VALUE file, VALUE mode); VALUE cIGraph_write_graph_edgelist(VALUE self, VALUE file); diff --git a/test/test_all.rb b/test/test_all.rb index 62a7fbe..07891e8 100644 --- a/test/test_all.rb +++ b/test/test_all.rb @@ -18,6 +18,7 @@ require 'tc_error_handling' require 'tc_file_read_write' require 'tc_layout' require 'tc_matrix' +require 'tc_other_ops' require 'tc_shortest_paths' require 'tc_spanning' require 'tc_spectral'