How can I get the link count between two nodes?
we have function to implement more that one link can not be allowed between two nodes when drop a node into a node?
If you have two Nodes, n1
and n2
, then it depends on whether you care about the direction that the links are going.
If you don’t care about direction, then:
n1.findLinksBetween(n2).count
If you do care about direction, then either:
n1.findLinksTo(n2).count
or:
n2.findLinksTo(n1).count
Thanks a lot