finesse.components.node.Node.is_neighbour

Node.is_neighbour(node)[source]

Checks if node is a connected by an edge to this node.

Parameters

node : Node

Node with which to check connection.

Returns

flag : bool

True if node is connected to this node, False otherwise.