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¶
Navigation 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¶
- Quick Locate: Use search function to quickly find specific elements
- Smart Zoom: Double-click elements to auto-zoom to appropriate level
- Context Switching: Right-click menu provides quick operations
- 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.