kinbaku.Graph.neighbors_from

Graph.neighbors_from(nodes)[source]

Returns the list of neighbors for all given nodes

Parameters

nodes (list) – list of node keys

Returns

a dict mapping node keys to the list of their neighbors

Return type

dict