Graph theory (network) library for visualisation and analysis
This report summarizes scanner evidence for cytoscape/cytoscape.js, a JavaScript project with 11,260 GitHub stars. SynthScan examined 233,372 lines of code across 486 source files, recording 120 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 0.8 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 118 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 26 finding(s).
Which changes need focused human review? 120 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 120 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | documentation/demos/animated-bfs/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/compound-nodes/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/tokyo-railways/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/gpu/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/performance-tuning/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/wine-cheese-map/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/genemania-export/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/edge-types/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/pie-style/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/edge-arrows/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/colajs-graph/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/labels/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | …entation/demos/background-image-containment/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/visual-style/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | …umentation/demos/images-breadthfirst-layout/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/circle-layout/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/node-types/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/spread-layout/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/architecture/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/dagre-layout/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | …entation/demos/cose-bilkent-layout-compound/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/multiple-windows/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/multiple-windows/windowIndex.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/cose-bilkent-layout/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/concentric-layout/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/multiple-instances/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/qtip-extension/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/stripe-style/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/initialisation/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/fcose-gene/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/cose-layout/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/grid-layout/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/radius-types/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/linkout-example/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| MEDIUM | documentation/demos/6000-elements/index.html | 2 | <!-- This code is for demonstration purposes only. You should not hotlink to Github, Rawgit, or files from the Cytoscap | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | documentation/js/cytoscape.cjs.js | 4750 | // Step 1: Add self loops to each node, ie. add multFactor to matrix diagonal | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 4753 | // Step 2: M = normalize( M ); | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 4760 | // Step 3: | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 4763 | // Step 4: | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 4766 | // Step 5: check to see if ~steady state has been reached | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 4993 | // Step 1: Initialize centroid positions | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5010 | // Step 2: Assign nodes to the nearest centroid | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5017 | // Step 3: For each of the k clusters, update its centroid | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5078 | // Step 2: Assign nodes to the nearest medoid | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5085 | // Step 3: For each medoid m, and for each node associated with mediod m, | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5226 | // Step 2: Calculate the centroids for each step. | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5229 | // Step 3: Update the partition matrix U. | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5232 | // Step 4: Check for convergence. | COMMENT |
| LOW | documentation/js/cytoscape.cjs.js | 5065 | // Step 1: Initialize k medoids | COMMENT |
| LOW | documentation/js/cytoscape.cjs.js | 5189 | // Step 1: Initialize letiables. | COMMENT |
| LOW⚡ | .github/workflows/scripts/merge_unstable_to_master.sh | 50 | # Step 2: Make sure local unstable is up-to-date | COMMENT |
| LOW⚡ | .github/workflows/scripts/merge_unstable_to_master.sh | 72 | # Step 3: Create a merge commit and push it | COMMENT |
| LOW⚡ | .github/workflows/scripts/merge_unstable_to_master.sh | 78 | # Step 4: Fast-forward master to the merge commit | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | documentation/js/cytoscape.cjs.js | 4750 | // Step 1: Add self loops to each node, ie. add multFactor to matrix diagonal | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 4753 | // Step 2: M = normalize( M ); | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 4766 | // Step 5: check to see if ~steady state has been reached | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 4993 | // Step 1: Initialize centroid positions | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5010 | // Step 2: Assign nodes to the nearest centroid | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5017 | // Step 3: For each of the k clusters, update its centroid | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5078 | // Step 2: Assign nodes to the nearest medoid | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5085 | // Step 3: For each medoid m, and for each node associated with mediod m, | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5226 | // Step 2: Calculate the centroids for each step. | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5229 | // Step 3: Update the partition matrix U. | COMMENT |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 5232 | // Step 4: Check for convergence. | COMMENT |
| LOW | documentation/js/cytoscape.cjs.js | 5065 | // Step 1: Initialize k medoids | COMMENT |
| LOW | documentation/js/cytoscape.cjs.js | 5189 | // Step 1: Initialize letiables. | COMMENT |
| LOW⚡ | .github/workflows/scripts/merge_unstable_to_master.sh | 50 | # Step 2: Make sure local unstable is up-to-date | COMMENT |
| LOW⚡ | .github/workflows/scripts/merge_unstable_to_master.sh | 72 | # Step 3: Create a merge commit and push it | COMMENT |
| LOW⚡ | .github/workflows/scripts/merge_unstable_to_master.sh | 78 | # Step 4: Fast-forward master to the merge commit | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/scripts/pre_release_test.sh | 6 | # Check if VERSION variable is set | COMMENT |
| LOW | .github/workflows/scripts/pre_release_test.sh | 14 | # Check if current Git branch is named "master" or the provided branch name | COMMENT |
| LOW⚡ | .github/workflows/scripts/pre_release_test.sh | 50 | # Check if the file exists in the local FS | COMMENT |
| LOW⚡ | .github/workflows/scripts/pre_release_test.sh | 58 | # Check if the file has changed | COMMENT |
| LOW⚡ | .github/workflows/scripts/pre_release_test.sh | 63 | # Check if the file has changed | COMMENT |
| LOW⚡ | .github/workflows/scripts/merge_unstable_to_master.sh | 6 | # Check if VERSION variable is set | COMMENT |
| LOW⚡ | .github/workflows/scripts/merge_unstable_to_master.sh | 14 | # Check if NEXT_VERSION variable is set | COMMENT |
| LOW⚡ | .github/workflows/scripts/merge_unstable_to_master.sh | 22 | # Check if NEXT_BACK_PORT_VERSION variable is set | COMMENT |
| LOW⚡ | .github/workflows/scripts/merge_unstable_to_master.sh | 54 | # Check if current Git branch is named "unstable" | COMMENT |
| LOW | .github/workflows/scripts/merge_unstable_to_master.sh | 94 | # Check if version is updated in package.json | COMMENT |
| LOW | .github/workflows/scripts/merge_unstable_to_master.sh | 103 | # Check if version is updated in package-lock.json | COMMENT |
| LOW | .github/workflows/scripts/merge_unstable_to_master.sh | 128 | # Check if version is updated in package.json for unstable | COMMENT |
| LOW | .github/workflows/scripts/merge_unstable_to_master.sh | 137 | # Check if version is updated in package-lock.json for unstable | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | documentation/js/cytoscape.cjs.js | 31287 | var getSourceLabelRotationPoint = function getSourceLabelRotationPoint(ele) { | CODE |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 31290 | var getTargetLabelRotationPoint = function getTargetLabelRotationPoint(ele) { | CODE |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 31296 | var getSourceLabelRotationOffset = function getSourceLabelRotationOffset(ele) { | CODE |
| LOW⚡ | documentation/js/cytoscape.cjs.js | 31299 | var getTargetLabelRotationOffset = function getTargetLabelRotationOffset(ele) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 3366 | var roundRectangleIntersectLine = function roundRectangleIntersectLine(x, y, nodeX, nodeY, width, height, padding) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 3940 | var roundPolygonIntersectLine = function roundPolygonIntersectLine(x, y, basePoints, centerX, centerY, width, height, pa | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 3989 | var generateUnitNgonPointsFitToSquare = function generateUnitNgonPointsFitToSquare(sides, rotationRadians) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 4052 | var getCutRectangleCornerLength = function getCutRectangleCornerLength() { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 4210 | degreeCentralityNormalized: function degreeCentralityNormalized(options) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 4352 | closenessCentralityNormalized: function closenessCentralityNormalized(options) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 5938 | var hopcroftTarjanBiconnected = function hopcroftTarjanBiconnected() { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 9899 | function defineDegreeBoundsFunction(degreeFn, callback) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 12388 | function cachePrototypeStyleFunction(key, fn) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 12393 | return function cachedPrototypeStyleFunction() { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 12664 | function defineDerivedStateFunction(specs) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 13158 | function defineParallelEdgesFunction(params) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 14158 | function springAccelerationForState(state) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 14161 | function springEvaluateStateWithDerivative(initialState, dt, derivative) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 16132 | function removeSelAndBlockFromRemaining() { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 24485 | var updateAncestorsInDragLayer = function updateAncestorsInDragLayer(node, opts) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 26269 | getOrCreateCorners: function getOrCreateCorners(centerX, centerY, width, height, cornerRadius, rs, field) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 26426 | var approximateBarrelCurvePts = function approximateBarrelCurvePts(pts) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 27007 | function ElementTextureCacheLookup(getKey) { | CODE |
| LOW | documentation/js/cytoscape.cjs.js | 31219 | var backgroundTimestampHasChanged = function backgroundTimestampHasChanged(ele) { | CODE |
| LOW | tests-examples/demo-todo-app.spec.js | 425 | async function checkNumberOfTodosInLocalStorage(page, expected) { | CODE |
| LOW | tests-examples/demo-todo-app.spec.js | 435 | async function checkNumberOfCompletedTodosInLocalStorage(page, expected) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | playwright.config.js | 41 | }, | COMMENT |
| LOW | documentation/js/cytoscape.cjs.js | 15341 | _p.hasPie = null; | COMMENT |
| LOW | documentation/js/cytoscape.cjs.js | 19901 | // Easing of the animation for animate:'end' | COMMENT |
| LOW | documentation/js/cytoscape.cjs.js | 21521 | BRp$f.arrowShapeWidth = 0.3; | COMMENT |
| LOW | .github/workflows/release.yml | 1 | name: Release | COMMENT |
| LOW | debug/style.css | 1 | body { font: 14pt helvetica; width: 100%; -webkit-text-size-adjust: 100%; margin: 0; padding: 0; height: 100%; width: 10 | COMMENT |
| LOW | debug/webgl/init.js | 261 | // duration: 1000 | COMMENT |
| LOW | debug/webgl/style.css | 1 | body { font: 14pt helvetica; width: 100%; -webkit-text-size-adjust: 100%; margin: 0; padding: 0; height: 100%; width: 10 | COMMENT |
| LOW | debug/webgl/networks.js | 61 | // url: 'network-ndex-large.json', | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | documentation/js/cytoscape.cjs.js | 4996 | // TODO: implement a seeded random number generator. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | debug/webgl/network-styles.json | 72 | "label": "n3 - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod", | CODE |
| LOW | debug/webgl/network-styles.json | 72 | "label": "n3 - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod", | CODE |