How to use the @hpcc-js/graph.Edge function in @hpcc-js/graph

To help you get started, we’ve selected a few @hpcc-js/graph examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / tests / test-graph / src / graph.spec.ts View on Github external
rawData2.links.forEach(function (link, idx) {
                                    edges2.push(
                                        new Edge()
                                            .sourceVertex(vertices2[link.source])
                                            .targetVertex(vertices2[link.target])
                                            .sourceMarker("circle")
                                            .targetMarker("arrow")
                                            .text("")
                                            .weight(50)
                                    );
                                }, graph2);
github hpcc-systems / Visualization / demos / gallery / samples / graph / Les Miserables.js View on Github external
rawData.links.forEach(function (link, idx) {
        edges.push(
            new Edge()
                .sourceVertex(vertices[link.source])
                .targetVertex(vertices[link.target])
                .sourceMarker("circle")
                .targetMarker("arrow")
                .text("")
                .weight(link.value)
        )
            ;
    });
github hpcc-systems / Visualization / demos / gallery / samples / misc / GraphSlider.js View on Github external
rawData.links.forEach(function (link) {
    graphData.edges.push(new Edge().sourceVertex(graphData.vertices[link.source]).targetVertex(graphData.vertices[link.target]).weight(link.value));
}, graph);
github hpcc-systems / Visualization / packages / marshaller / src / ddl1 / Graph.ts View on Github external
viz.getInputVisualizations().forEach(inViz => {
                    edges.push(new Edge()
                        .sourceVertex(inViz.newWidgetSurface)
                        .targetVertex(viz.newWidgetSurface)
                        .targetMarker("arrowHead")
                    );
                });
            });
github hpcc-systems / Visualization / packages / map / src / GMapGraph.ts View on Github external
context.data().forEach(function (row) {
                const pos2 = context._viewportSurface.project(row[0], row[1]);
                const newAddr = new Shape()
                    .shape("circle")
                    .radius(3)
                    .data(row)
                    .pos(pos2)
                    ;
                vertices.push(newAddr);
                if (prevAddr) {
                    edges.push(new Edge()
                        .sourceVertex(prevAddr)
                        .targetVertex(newAddr)
                        .sourceMarker("none")
                        .targetMarker("arrow")
                    );
                }
                prevAddr = newAddr;
            });
            this.data({ vertices, edges });
github hpcc-systems / Visualization / packages / eclwatch / src / WUStatus.ts View on Github external
createEdge(source, target) {
        return new Edge()
            .sourceVertex(source)
            .targetVertex(target)
            .strokeColor("black")
            .showArc(false)
            ;
    }
github hpcc-systems / Visualization / packages / marshaller / src / ddl2 / graphadapter.ts View on Github external
createEdge(sourceID: string, targetID: string) {
        const edgeID = `${sourceID}->${targetID}`;
        let retVal = this.edgeMap[edgeID];
        if (!retVal) {
            retVal = new Edge()
                .sourceVertex(this.vertexMap[sourceID])
                .targetVertex(this.vertexMap[targetID])
                ;
            this.edgeMap[edgeID] = retVal;
        }
        this.edges.push(retVal);
        return retVal;
    }
github hpcc-systems / HPCC-Platform / esp / src / src / WUStatus.ts View on Github external
createEdge(source, target) {
        return new Edge()
            .sourceVertex(source)
            .targetVertex(target)
            .strokeColor("black")
            .showArc(false)
            ;
    }

@hpcc-js/graph

hpcc-js - Viz Graph

Apache-2.0
Latest version published 1 month ago

Package Health Score

78 / 100
Full package analysis

Similar packages