src/provider/provider.js
function (node) {
            if (node.type === graph.node.NodeTypes.VALUE) {
                return provider.node.getColor(node.parent);
            } else {
                var parentLabel = "";
                if (node.hasOwnProperty("parent")) {
                    parentLabel = node.parent.label
                }

                var incomingRelation = node.parentRel || "";

                var colorId = parentLabel + incomingRelation + node.label;
                return provider.colorScale(colorId);
            }
        }
function (node) {
            if (node.type === graph.node.NodeTypes.VALUE) {
                return provider.node.getColor(node.parent);
            } else {
                var parentLabel = "";
                if (node.hasOwnProperty("parent")) {
                    parentLabel = node.parent.label
                }

                var incomingRelation = node.parentRel || "";

                var colorId = parentLabel + incomingRelation + node.label;
                return provider.colorScale(colorId);
            }
        }
function ( node ) { if ( node . type === graph . node . NodeTypes . VALUE ) { return provider . node . getColor ( node . parent ) ; } else { var parentLabel = "" ; if ( node . hasOwnProperty ( "parent" ) ) { parentLabel = node . parent . label } var incomingRelation = node . parentRel || "" ; var colorId = parentLabel + incomingRelation + node . label ; return provider . colorScale ( colorId ) ; } }
Return a color for the node.

@param node
@returns {*}
Return a color for the node .