Skip to content
maxkfranz edited this page May 11, 2012 · 4 revisions

edges.source()

Get the source node connected to this edge.

edges.source()

Gets the source node of the edge

Details

This function returns the source element (i.e. source node) connected to the edge. When more than one edge is in the collection, all sources are included in the resultant collection.

Example

// assume graph n1 =e1=> n2 =e2=> n3

cy.edges("#e1").source(); // n1

Clone this wiki locally