finesse.components.node.Node.is_neighbour

Node.is_neighbour(node)[source]

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

Parameters
nodeNode

Node with which to check connection.

Returns
flagbool

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