Skip to content

Commit

Permalink
added test to edgeclustering
Browse files Browse the repository at this point in the history
  • Loading branch information
seoanezonjic committed May 27, 2024
1 parent 40a8893 commit e7cd48b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cdlib/test/test_edgeclustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ def test_to_json(self):
js = coms.to_json()
self.assertIsInstance(js, str)

coms = algorithms.hierarchical_link_community_w(g)
self.assertIsInstance(coms, EdgeClustering)
js = coms.to_json()
self.assertIsInstance(js, str)

coms = algorithms.hierarchical_link_community_full(g)
self.assertIsInstance(coms, EdgeClustering)
js = coms.to_json()
self.assertIsInstance(js, str)

def test_node_map(self):
g = nx.karate_club_graph()
coms = algorithms.hierarchical_link_community(g)
Expand Down

0 comments on commit e7cd48b

Please sign in to comment.