[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Python Interface to igraph
From: |
Lorenzo Isella |
Subject: |
Re: [igraph] Python Interface to igraph |
Date: |
Thu, 7 Feb 2008 18:39:09 +0100 |
Hello Tamas,
And thanks for your reply
> As for me, I use python setup.py build && python setup.py install.
> However, you can simply check whether the installation is correct by
> invoking Python and typing:
>
> >>> from igraph.test import test
> >>> test()
> ........................................................................................................
> ----------------------------------------------------------------------
> Ran 104 tests in 0.695s
> OK
>
> (note that this is v0.5 from the dev tree, v0.4.5 has ~50 tests only)
I tried your suggestion after realizing that the test suite was failing.
But here is what I get:
In [1]: from igraph.test import test
In [2]: test()
............................EE.......F...F...........
======================================================================
ERROR: testMaxFlowValue (igraph.test.flow.MaxFlowTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/igraph/test/flow.py", line
16, in testMaxFlowValue
self.failUnless(self.g.maxflow_value(0, 3) == 2)
InternalError: Error at igraph/flow.c:145: , Invalid value
======================================================================
ERROR: testMinCutValue (igraph.test.flow.MaxFlowTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/igraph/test/flow.py", line
22, in testMinCutValue
self.failUnless(self.g.mincut_value(0, 3) == 2)
InternalError: Error at igraph/flow.c:368: , Invalid value
======================================================================
FAIL: testCliques (igraph.test.cliques.CliqueTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/igraph/test/cliques.py", line
23, in testCliques
self.assertEqual(map(tuple, exp), self.g.cliques(lo, hi))
AssertionError: [(0,), (1,), (2,), (3,), (4,), (5,), (0, 3), (0, 4),
(0, 5), (1, 2), (1, 3), (1, 4), (1, 5), (2, 3), (2, 4), (2, 5), (3,
4), (4, 5), (0, 3, 4), (0, 4, 5), (1, 2, 3), (1, 2, 4), (1, 2, 5), (1,
3, 4), (1, 4, 5), (2, 3, 4), (2, 4, 5), (1, 2, 3, 4), (1, 2, 4, 5)] !=
[]
======================================================================
FAIL: testIndependentVertexSets (igraph.test.cliques.IndependentVertexSetTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/igraph/test/cliques.py", line
50, in testIndependentVertexSets
self.assertEqual(exp, self.g1.independent_vertex_sets(lo, hi))
AssertionError: [(0,), (1,), (2,), (3,), (4,), (0, 3), (0, 4), (1, 2),
(2, 3), (2, 4), (3, 4), (0, 3, 4), (2, 3, 4)] != []
----------------------------------------------------------------------
Ran 53 tests in 0.042s
FAILED (failures=2, errors=2)
Do you have a clue at what is going on?
Your other answers most likely solve my problems, but first I have to
ensure myself that my installation is not crippled.
I am not familiar with the tests, so I do not exactly know what is the problem.
Cheers
Lorenzo