git-svn-id: http://igraph.rubyforge.org/svn/trunk@32 71f48855-0bbf-4aa5-930d-4df415e86613
This commit is contained in:
parent
3f747f09eb
commit
34d6601684
|
@ -1,22 +0,0 @@
|
|||
require 'igraph'
|
||||
require 'gratr/import'
|
||||
require 'benchmark'
|
||||
|
||||
gratr_g = Digraph[1,2,2,3,3,4]
|
||||
igraph_g = IGraph.new([1,2,2,3,3,4])
|
||||
graph_g =
|
||||
|
||||
include Benchmark
|
||||
|
||||
bm(6) do |x|
|
||||
x.report("igraph"){
|
||||
50000.times{
|
||||
igraph_g.topological_sorting(IGraph::OUT)
|
||||
}
|
||||
}
|
||||
x.report("gratr"){
|
||||
50000.times{
|
||||
gratr_g.topsort
|
||||
}
|
||||
}
|
||||
end
|
Loading…
Reference in New Issue