Skip to main content

Interface: CyEdge

Defined in: packages/sdvplot/src/cytoscape.ts:37

A directed edge from passer to receiver.

Properties​

data​

data: object

Defined in: packages/sdvplot/src/cytoscape.ts:38

id​

id: string

The source and target ids joined by an arrow, as in 5485-\>3099 (Varane to Lloris).

source​

source: string

The passer's node id.

target​

target: string

The receiver's node id.

team?​

optional team?: string

The passer's resolved team id; absent when it does not resolve.

weight​

weight: number

The pair's passes (or summed weight).

width​

width: number

The edge's width in px: edgeWidth for the heaviest pair, the others in proportion to their weight; 0 for a pair whose weight is 0 or less (a summed xT can be negative), since Cytoscape takes no negative width.