cytoscape-graph-rendering

Builds interactive ontology graphs in the browser with Cytoscape.js from node and edge slice data.

26|8|Updated May 22, 2026
One-click install
npx skills add https://github.com/amazingsyp/pokemon-ontology --skill cytoscape-graph-rendering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cytoscape-graph-rendering
Source: https://github.com/amazingsyp/pokemon-ontology/tree/main/.claude/skills/cytoscape-graph-rendering
Command: npx skills add https://github.com/amazingsyp/pokemon-ontology --skill cytoscape-graph-rendering

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the challenge of building an interactive, touch-friendly ontology graph UI that visually distinguishes classes, instances, literals, and different edge types while supporting inference animations and user-driven graph editing.

Core Features & Use Cases

  • Cytoscape.js graph initialization: Create a graph from node/edge slices with layout hints and zoom constraints for responsive rendering.
  • Node and edge styling by ontology semantics: Apply distinct visual styles for class/instance/literal nodes and for object/is-a/data edges, including highlighted and selected states.
  • Interactive editing tools: Add nodes, draw edges via Cytoscape edgehandles, delete selected elements, and extract current user edges for validation.
  • Inference animation workflow: Stepwise emphasize matched rule edges, fade in derived triples, and convert inferred styling into confirmed styles.
  • Mobile touch support: Enable zoom/pan, add double-tap to create nodes, and long-press context menus, with resizing/fit handling.

Quick Start

Use this skill to generate the Cytoscape.js graph-renderer implementation for your ontology learning chapter, then wire it into your UI so users can drag, connect, and animate inferred triples on desktop and mobile.

Frequently Asked Questions about cytoscape-graph-rendering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render an interactive ontology graph using Cytoscape.js?

To render an interactive ontology graph with Cytoscape.js, initialize the graph deterministically from semantic node and edge slice data, applying layout hints and zoom constraints to visually distinguish classes, instances, and literals.

Can I use Cytoscape.js for touch support like pinch-zoom and long-press menus on mobile?

Yes, Cytoscape.js supports mobile touch interactions by enabling pinch-to-zoom, double-tap to create nodes, and long-press context menus, ensuring responsive graph editing across desktop and mobile views.

How do I animate inference steps in a Cytoscape.js graph?

You animate inference steps in a Cytoscape.js graph by stepwise emphasizing matched rule edges, fading in derived triples, and converting inferred visual styles into confirmed styles.

What is the best way to style different edge types in a Cytoscape.js ontology graph?

Styling edge types in a Cytoscape.js ontology graph requires a style system keyed by semantic edge kind, applying distinct visual styles for object, is-a, and data edges including highlighted and selected states.

How to add nodes and draw edges in a Cytoscape.js graph?

To add nodes and draw edges in a Cytoscape.js graph, use interactive editing tools like Cytoscape edgehandles for drawing connections and delete operations to remove selected graph elements.

Does Cytoscape.js require specific data formats to build interactive graphs?

Cytoscape.js requires deterministic graph initialization using node and edge slice data containing semantic properties and layout hints to build interactive ontology graphs successfully.