Skip to content

Commit

Permalink
Add igraph test (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosbo committed Jun 10, 2021
1 parent 3f0701e commit 6d08285
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_igraph.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import unittest

from igraph import Graph


class TestIgraph(unittest.TestCase):
def test_graph(self):
# Create a graph with 10 vertices & 2 children each.
g2 = Graph.Tree(n=10, children=2)

self.assertEqual(9, len(g2.get_edgelist()))

0 comments on commit 6d08285

Please sign in to comment.