User Tools

Site Tools


01_user_documentation:xl_programming_language:queries

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
01_user_documentation:xl_programming_language:queries [2025/01/24 11:58] – ↷ Page moved from xl_programming_language:queries to 01_user_documentation:xl_programming_language:queries gaetan01_user_documentation:xl_programming_language:queries [2025/01/24 17:09] (current) – removed gaetan
Line 1: Line 1:
-====== Graph queries in XL ====== 
  
-===== Description ===== 
- 
-Queries are used to query existing graphs for specific features. They are used to analyse the actual graph and search for a specific pattern. 
- 
-===== XL syntax ===== 
- 
-Queries are enclosed in asterisked parenthesis: ''(* *)'' 
- 
-The elements are given in their expected order. For example, ''(* Internode Internode Apex *)'' searches for a subgraph which consists of a sequence of nodes of the types ''Internode Internode Apex'', connected by successor edges. 
- 
-===== Examples ===== 
- 
-  * Find all ''Internode'' nodes, and print them out: 
-''println( (* Internode *) )'' 
-  * Find all newly created ''Internode'' nodes (with age 0): 
-''(* i:Internode, (i[age] == 0) *)'' 
-  * Search for all ''Internode'' nodes with diameter greater than 0.01: 
-''(* i:Internode, (i[diameter] > 0.01) *)'' 
-  * Find all pairs of segments ''F'' with distance smaller than 1: 
-''(* f:F, g:F, ( (f != g) && (distance(f, g) < 1) ) *)'' 
-  * Find all ''Internode'' nodes, connected to a ''Leaf'' node with a branching edge: 
-''(* Internode +> Leaf *)'' 
01_user_documentation/xl_programming_language/queries.1737716336.txt.gz · Last modified: 2025/01/24 11:58 by gaetan