def test_atp_E_B(self): self.assertEqual( temporal_graph.seconds_to_days( self.graph.average_temporal_proximity('B', 'E')), None )
def test_atp_B_E(self): self.assertEqual( temporal_graph.seconds_to_days( self.graph.average_temporal_proximity('E', 'B')), 12 )
def test_tp_A_D_null_null__weight_equal_0(self): self.assertEqual( temporal_graph.seconds_to_days( self.graph.weight( self.graph.temporal_proximity('A', 'D', None, None))), 0)
def test_atp_A_E(self): self.assertEqual( temporal_graph.seconds_to_days( self.graph.average_temporal_proximity('A', 'E')), 0.5 )
def test_tp_A_D_t2_t7_weight_is_19_days(self): self.assertEqual( temporal_graph.seconds_to_days( self.graph.weight(self.graph.temporal_proximity( 'A', 'D', 2, 7))), 19.0)