pypath.core.interaction.InteractionKey§

class pypath.core.interaction.InteractionKey(entity_a, entity_b)§

Bases: tuple

__init__()§

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

entity_a

Alias for field number 0

entity_b

Alias for field number 1

count(value, /)§

Return number of occurrences of value.

entity_a§

Alias for field number 0

entity_b§

Alias for field number 1

index(value, start=0, stop=9223372036854775807, /)§

Return first index of value.

Raises ValueError if the value is not present.