Skip to content

Basic Operations Guide

This guide will help you master the basic operations of the hypergraph visualization interface.

πŸ–±οΈ Mouse Operations

Basic Interactions

🎯 Operation πŸ“ Description πŸ’‘ Tips
Left Click Select vertex or hyperedge Click empty area to deselect
Left Drag Move view Hold and drag to pan entire graph
Right Click Open context menu Quick access to common functions
Mouse Hover Show detailed information Hover over elements to view properties

Zoom Operations

// Mouse wheel zoom
Scroll Up = Zoom in
Scroll Down = Zoom out

// Keyboard shortcuts
Ctrl + Mouse Wheel = Fine zoom control
Ctrl + 0 = Reset zoom

⌨️ Keyboard Shortcuts

πŸ”‘ Key ⚑ Function πŸ“‹ Description
Space Pan mode Hold spacebar and drag to move view
F Fit to window Auto-adjust view to show all content
R Reset view Return to initial view state
Ctrl + F Search Open search box to find specific elements

Selection Shortcuts

πŸ”‘ Key ⚑ Function πŸ“‹ Description
Ctrl + A Select all Select all visible elements
Ctrl + Click Multi-select Add or remove elements from selection
Shift + Click Range select Select all elements between two elements
Esc Clear selection Clear current selection

🎯 Element Selection

Vertex Selection

# Create vertices with different types
hg.add_v("person_1", {"name": "Alice", "type": "Person", "age": 30})
hg.add_v("project_1", {"name": "AI Research", "type": "Project"})
hg.add_v("skill_1", {"name": "Machine Learning", "type": "Skill"})

Selection Effects: - ✨ Highlight: Selected vertices change color - πŸ“Š Info Panel: Detailed properties shown on the right - πŸ”— Associated Display: Related hyperedges are also highlighted

Hyperedge Selection

# Create different types of hyperedges
hg.add_e(("person_1", "project_1"), {"relation": "leads", "start_date": "2024-01-01"})
hg.add_e(("person_1", "project_1", "skill_1"), {"relation": "applies_skill_in_project"})

Selection Effects: - 🎨 Edge Highlight: Selected hyperedges become bold or change color - πŸ“‹ Relationship Info: Shows hyperedge properties and connected vertices - 🎯 Endpoint Emphasis: Connected vertices are also highlighted

πŸ” View Navigation

Zoom Levels

πŸ” Zoom Level Description:
β”œβ”€β”€ 25% - Ultra wide view, suitable for overall overview
β”œβ”€β”€ 50% - Wide view, for viewing large-scale structure
β”œβ”€β”€ 100% - Standard view, default display level
β”œβ”€β”€ 200% - Magnified view, for viewing details
└── 400% - Ultra magnified view, editing mode

Auto Layout

The system provides multiple layout algorithms:

🎨 Layout Type πŸ“ Use Case βš™οΈ Features
Force-directed General purpose Natural distribution, good aesthetics
Circular Small-scale data Circular arrangement, clear structure
Hierarchical Hierarchical data Tree structure, clear levels
Grid Regular data Grid arrangement, neat alignment

πŸ“Š Information Viewing

Hover Tooltips

Hovering the mouse over any element shows:

Vertex Information:
  - Unique identifier
  - All property key-value pairs
  - Number of connected hyperedges
  - Neighbor vertex statistics

Hyperedge Information:
  - List of connected vertices
  - Relationship type and properties
  - Weight and strength
  - Metadata like creation time

Details Panel

After selecting an element, the right panel shows complete information:

  • πŸ” Basic Info: ID, type, label
  • πŸ“‹ Property List: All key-value pairs
  • πŸ”— Relationship Network: Connected other elements
  • πŸ“Š Statistics: Degree, centrality and other metrics

πŸŽ›οΈ Toolbar Functions

Main Toolbar

🧰 Toolbar Layout:
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ [🏠] [πŸ”] [βš™οΈ] [πŸ“] [πŸ’Ύ] [❓]    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  β”‚    β”‚    β”‚    β”‚    β”‚    β”‚
  β”‚    β”‚    β”‚    β”‚    β”‚    └─ Help
  β”‚    β”‚    β”‚    β”‚    └─ Export data
  β”‚    β”‚    β”‚    └─ Load data
  β”‚    β”‚    └─ Settings panel
  β”‚    └─ Search function
  └─ Return to home

Secondary Toolbar

πŸ”§ Tool πŸ“ Function 🎯 Purpose
🎨 Style Change colors and sizes Personalized display
πŸ“ Measure Calculate distances and paths Analysis tools
πŸ” Filter Hide specific elements Simplify view
πŸ“Έ Screenshot Save current view Sharing and recording

πŸ’‘ Operation Tips

Efficient Navigation

  1. Quick Locate: Use search function to quickly find specific elements
  2. Smart Zoom: Double-click elements to auto-zoom to appropriate level
  3. Context Switching: Right-click menu provides quick operations
  4. Batch Operations: Use multi-select for batch processing

Performance Optimization

# Tips for large dataset visualization
viewer = hg.get_viewer()

# Show only vertices with high degree
viewer.filter_by_degree(min_degree=3)

# Limit display count
viewer.limit_vertices(max_count=100)

# Enable LOD (Level of Detail)
viewer.enable_lod(True)

After mastering these basic operations, you can efficiently use the hypergraph visualization features! Next, learn about the Interface Guide to deeply understand each functional area.