graph.isSource(element)
Return true if element is a root, i.e. there is no link that targets the element. Time complexity: O(1).
true
element
O(1)