graph.getNeighbors(element [, opt])
Get all the neighbors of
element in the graph. Neighbors are all the elements connected to
element via either an inbound or an outbound link.
Accepts several options, which may be provided inside an
deep- also return all the neighbors of all the elements embedded inside
inbound- return only inbound neighbors (neighbors connected with a link whose
outbound- return only outbound neighbors (neighbors connected with a link whose
indirect- in addition to standard rules (including
inboundmodifications), also return the elements that can only be considered neighbors of
elementif we go
against the flowof directed links at link-link connections.