Skip to content

Commit

Permalink
test verifing that IndirectPartnerAttribute (name here and IPNet term…
Browse files Browse the repository at this point in the history
…inology)

is Alter2Star2 in MPNet ALAAM terminology, on karateclub example, passes
(also known as two-path equivalence)
  • Loading branch information
stivalaa committed Mar 8, 2023
1 parent 0fb50a4 commit eae53c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ def test_undirected_change_stats_karate():
obs_alter2star1 = computeObservedStatistics(g, outcome_binvar,
[changePartnerActivityTwoPath])
print (obs_alter2star1)
assert obs_alter2star1 == [566] # verified on MPNet
assert obs_alter2star1 == [566] # verified on MPNet (see examples/data/karateclub/README)
obs_alter2star2 = computeObservedStatistics(g, outcome_binvar,
[changeIndirectPartnerAttribute])
print (obs_alter2star2)
assert obs_alter2star2 == [219] # verified on MPNet (see examples/data/karateclub/README)
print("OK,", time.time() - start, "s")
print()

Expand Down

0 comments on commit eae53c3

Please sign in to comment.