kinbaku.Graph.neighbors

Graph.neighbors(u)[source]

Iterate over all nodes v such that (u, v) is an edge

Parameters

u (str) – key of the source node

Yields

iterator – iterator of node keys