Permalink
Browse files

Attach clique ffi calls

  • Loading branch information...
1 parent 3120297 commit 777def26b368888e5325efb023406c3b3f8b16de @jamesdabbs committed Apr 11, 2013
Showing with 17 additions and 1 deletion.
  1. +2 −1 lib/steffi/ffi.rb
  2. +15 −0 lib/steffi/ffi/cliques.rb
View
@@ -38,4 +38,5 @@ def self.method_missing name, *args, &block
require_relative 'ffi/basic'
require_relative 'ffi/vector'
-require_relative 'ffi/constructors'
+require_relative 'ffi/constructors'
+require_relative 'ffi/cliques'
View
@@ -0,0 +1,15 @@
+module Steffi
+ module Igraph
+ # 15.1 Cliques
+ bind :cliques, [:pointer, :pointer, :int, :int]
+ bind :largest_cliques, [:pointer, :pointer]
+ bind :maximal_cliques, [:pointer, :pointer, :int, :int]
+ bind :clique_number, [:pointer, :pointer]
+
+ # 15.2 Independent vertex sets
+ bind :independent_vertex_sets, [:pointer, :pointer, :int, :int]
+ bind :largest_independent_vertex_sets, [:pointer, :pointer]
+ bind :maximal_independent_vertex_sets, [:pointer, :pointer]
+ bind :independence_number, [:pointer, :pointer]
+ end
+end

0 comments on commit 777def2

Please sign in to comment.