This commit is contained in:
alexgutteridge 2007-09-03 08:18:04 +00:00
parent 44e64b593e
commit fdae1b7e07
1 changed files with 5 additions and 1 deletions

View File

@ -184,7 +184,7 @@ void Init_igraph(){
rb_include_module(cIGraph, rb_mEnumerable);
rb_define_const(cIGraph, "VERSION", rb_str_new2("0.3.1"));
rb_define_const(cIGraph, "VERSION", rb_str_new2("0.3.2"));
rb_define_const(cIGraph, "EDGEORDER_ID", INT2NUM(1));
rb_define_const(cIGraph, "EDGEORDER_FROM", INT2NUM(2));
@ -203,6 +203,10 @@ void Init_igraph(){
rb_define_const(cIGraph, "EACH", INT2NUM(0));
rb_define_const(cIGraph, "COLLAPSE", INT2NUM(1));
rb_define_const(cIGraph, "GET_ADJACENCY_UPPER", INT2NUM(0));
rb_define_const(cIGraph, "GET_ADJACENCY_LOWER", INT2NUM(1));
rb_define_const(cIGraph, "GET_ADJACENCY_BOTH", INT2NUM(2));
rb_define_method(cIGraph, "[]", cIGraph_get_edge_attr, 2); /* in cIGraph_attribute_handler.c */
rb_define_method(cIGraph, "[]=", cIGraph_set_edge_attr, 3); /* in cIGraph_attribute_handler.c */
rb_define_alias (cIGraph, "get_edge_attr", "[]");