Example #1
0
 def test_attNameStrange_timdelta_zero_same_dates_returns_true(self):
     G1 = self.provide_g1_topology()
     temporal_name = 'strange'
     G1 = put_same_time(G1, temporal_name)
     G2 = self.provide_g2_path_3edges()
     d = timedelta()
     gm = iso.TimeRespectingDiGraphMatcher(G1, G2, temporal_name, d)
     assert gm.subgraph_is_isomorphic()
Example #2
0
 def test_timdelta_one_config2_returns_two_embeddings(self):
     G1 = self.provide_g1_topology()
     temporal_name = 'date'
     G1 = put_time_config_2(G1, temporal_name)
     G2 = self.provide_g2_path_3edges()
     d = timedelta(days=1)
     gm = iso.TimeRespectingDiGraphMatcher(G1, G2, temporal_name, d)
     count_match = len(list(gm.subgraph_isomorphisms_iter()))
     assert count_match == 2