Skip to content

Commit 5e9636b

Browse files
committed
added new ASOIAF main script
1 parent ba7d181 commit 5e9636b

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

src/dev_ASOIAF.R

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Main script to extract the networks, compute their topological measures, and
2+
# generate the corresponding plots.
3+
#
4+
# Vincent Labatut
5+
# 02/2023
6+
#
7+
# setwd("~/vlabatut/Eclipse/workspaces/Networks/NaNet")
8+
# setwd("C:/Users/Vincent/Eclipse/workspaces/Networks/NaNet")
9+
# source("src/dev_ASOIAF.R")
10+
###############################################################################
11+
12+
13+
14+
15+
###############################################################################
16+
# setup parameters
17+
SERIES <- "ASOIAF"
18+
19+
20+
21+
22+
###############################################################################
23+
# load scripts
24+
source("src/common/_include.R")
25+
26+
# start logging
27+
start.rec.log(text=SERIES)
28+
29+
30+
31+
32+
###############################################################################
33+
###############################################################################
34+
# read raw data
35+
data.impl <- read.raw.data(char.det="implicit")
36+
# OR, if already computed, read from file
37+
#data.impl <- read.corpus.data(char.det="implicit")
38+
39+
# compute corpus stats
40+
data.impl <- compute.corpus.stats(data=data.impl, char.det="implicit")
41+
42+
# plot these stats
43+
plot.corpus.stats(data=data.impl, char.det="implicit")
44+
45+
46+
47+
48+
###############################################################################
49+
# extract scene-based networks
50+
data.impl <- extract.static.graphs.base(data=data.impl)
51+
52+
# plot these graphs
53+
plot.static.graphs(data=data.impl)
54+
55+
56+
57+
58+
###############################################################################
59+
# compute scene-based graph stats
60+
compute.static.statistics.base(data=data.impl, char.det="implicit")
61+
62+
# plot these stats
63+
generate.static.plots.base(data=data.impl)
64+
65+
66+
67+
68+
###############################################################################
69+
# stop logging
70+
end.rec.log()

0 commit comments

Comments
 (0)