-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgs.nls
More file actions
29 lines (25 loc) · 704 Bytes
/
gs.nls
File metadata and controls
29 lines (25 loc) · 704 Bytes
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
to export-gs
gs-hide
ifelse any? T-visible
[
let status gs:add-singlegraph "View"
set status gs:start-viewer gs:current-graph-name
set status gs:add-all-nodes T-visible
set status gs:add-all-edges links with [not hidden?]
]
[
user-message "There is nothing to show"
]
end
to gs-hide
foreach gs:viewers-names
[ let status gs:close-viewer ?
ifelse status
[ output-print (word "Viewer " ? " closed") ]
[ output-print (word "Problem with the viewer " ?) ] ]
foreach gs:graphs-names
[ let status gs:clear-graph ?
ifelse status
[ output-print (word "Graph " ? " cleared") ]
[ output-print (word " Problem with the graph " ?) ] ]
end