Edge.first

Edge.first()
Returns:

the nodeId of the first node of the arc (the tail)

Return type:

int

Example

import pyagrum as gum

edge = gum.Edge(5, 2)  # the edge 2-5
edge.first()
# 2

Class

Edge