Skip to content

Commit 6d08285

Browse files
authored
Add igraph test (#1029)
1 parent 3f0701e commit 6d08285

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_igraph.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import unittest
2+
3+
from igraph import Graph
4+
5+
6+
class TestIgraph(unittest.TestCase):
7+
def test_graph(self):
8+
# Create a graph with 10 vertices & 2 children each.
9+
g2 = Graph.Tree(n=10, children=2)
10+
11+
self.assertEqual(9, len(g2.get_edgelist()))
12+

0 commit comments

Comments
 (0)