-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathcheat_sheet.txt
135 lines (101 loc) · 3.2 KB
/
cheat_sheet.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
Cheat Sheet:
==================
# Basic Controls
Click + Move mouse to change camera orientation
Click on a node to select it
Double click on a node to zoom in and lock the camera on that node
Click anywhere else to unlock the camera from that node
ALT + M : Hide left panel
ALT + SPACE : Play/Pause event timeline
# Basic Commands
help
$ help
info
$ info
load
$ load my_dataset.json
save
$ save my_graph.json
screenshot
$ screenshot example.tga <--- Take a screenshot and save it in example.tga
$ screenshot example.tga 2 <--- Take a screenshot with the resolution of your window multiplied by 2
set
$ set my_attribute my_value
$ set float og:space:size 2.0
$ set vec4 og:space:color 1.0 0.0 0.0 0.5 <--- RGBA components
get
$ get my_attribute
$ get og:space:size
remove
$ remove
map
$ map float og:space:size to float og:space:activity
clear
$ clear graph
$ clear colors
$ clear icons
$ clear activity
$ clear lod
color
$ color orange
$ color by type
$ color by my_attribute
$ color set rgb 0.7
$ color set rgb 1 .46 0 1
$ color mul alpha 0.8
$ color add rgba .2
# Queries
select
$ select blah <--- Select Node named blah
$ select *blah* <--- Select nodes matching "*blah*"
$ select blah plop <--- Select edge between blah and plop
$ select blah * <--- Select all edges connected to node named blah
filter
$ filter type 2 <--- Select all nodes with type "2"
$ filter my_attribute value_pattern <--- Select all nodes with my_attribute matches value_pattern
$ filter cc US <--- Select all nodes where "cc" attribute (Country code) is US
$ filter type 2 3 <--- Select all edges connecting a node with type 2 and a node with type 3
query
- Undocumented for now, working on real query language.
# Layout / Animation
layout
$ layout point
$ layout sphere
$ layout sphere 50
$ layout cube
$ layout cone
# layout seeds <--- Place nodes with depth 0 on a circle
# layout globe <--- If nodes have geocoordinates, place them on a globe sphere.
play
$ play camera
$ play physics
stop
$ stop camera
$ stop physics
# Graph Commands
topo
$ topo neighbors
$ topo cc <-- Connected Components
$ topo directions
$ topo connections <-- Color nodes depending on their in/out degree (Internal, Sink, Source, Leaf)
$ topo degrees <-- Highlight nodes with high degrees
$ topo degrees high
$ topo degrees low <-- Highlight nodes with low degrees
$ topo spn <-- Apply SPN model (See research presentations)
# Test
test
$ test debug <--- Activate debug mode
$ test graph <--- Generate a random graph with 1k nodes, 1k edges.
$ test graph 500 <--- Generate a random graph with 500 nodes, 500 edges.
$ test graph 100 200 <--- Generate a random graph with 100 nodes, 200 edges.
$ test randomize activity <--- Randomize the graph activity attribute
$ test randomize icons
$ test randomize lod
$ test randomize node size
$ test randomize edge width
$ test randomize timeline
$ test neighbor plop <--- Add a neighbor "plop" to selected node.
# Custom Commands
opendns
$ opendns infected <--- Show infected score (Whitelisted/Blocked)
$ opendns dga <--- Show DGA score on red gradient (Red: DGA, White: Benign)