NaiveEdge

p5ex~ NaiveEdge

A Naive implementation of an edge between two objects.

Constructor

new NaiveEdge(nodeA, nodeB)

Source:
Parameters:
Name Type Description
nodeA
nodeB

Methods

getAdjacentNode(node)

Returns the adjacent node of the given node via this edge. If this edge is not incident to the given node, returns always the end point node.
Source:
Parameters:
Name Type Description
node T any node which is incident to this edge

isIncidentTo(node)

Returns true if the provided node is incident to this edge.
Source:
Parameters:
Name Type Description
node