// The edges running from this collection's nodes to others — edgesWith() restricted by direction
eles.edgesTo(others: Collection): Collection<NodeData, EdgeData, EdgeData>The edges running from this collection's nodes to others — edgesWith() restricted by direction.
| Name | Description |
|---|---|
others: Collection | the target-side nodes |
Returns
Collection<NodeData, EdgeData, EdgeData>the directed connecting edges
Example
const other = cy.getElementById('b');console.log(cy.getElementById('a').edgesTo(other).map(ele => ele.id())); // ["ab"]