org.visallo.graph.edge.transformer

Function that can change cytoscape edge structure

Allows extensions to adjust the data attribute of cytoscape edges.

Registration

registry.registerExtension("org.visallo.graph.edge.transformer", config)

Source:
Tutorials:
See:
Configuration Properties:
Name Type Description
config transformerFn

Validation Function

Extensions registered must pass this validation check to be used.

function extensionValidator(e) {
    return _.isFunction(e);
}

Type Definitions

transformerFn(data)

Source:

Mutate the object to change the edge data.

Example
function transformer(data) {
    data.myCustomAttr = '';
}
Parameters:
Name Type Description
data object

The cytoscape data object

Properties
Name Type Description
source string

The source vertex id

target string

The target vertex id

type string

The edge label IRI

label string

The edge label display value

edgeInfos array.<object>
edges array.<object>