From fdae1b7e07ad4f8c5e4a15d12f6bf2296eb23fd2 Mon Sep 17 00:00:00 2001 From: alexgutteridge Date: Mon, 3 Sep 2007 08:18:04 +0000 Subject: [PATCH] --- ext/cIGraph.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/cIGraph.c b/ext/cIGraph.c index 30d2949..b223626 100644 --- a/ext/cIGraph.c +++ b/ext/cIGraph.c @@ -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", "[]");