You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-24Lines changed: 29 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
-
NaNet
1
+
NaNet v1.1.0
2
2
=======
3
3
*Extraction and analysis of character networks from bandes dessinées, comics, mangas, and such*
4
4
5
-
* Copyright 2018-2023 Vincent Labatut
5
+
* Copyright 2018-2024 Vincent Labatut
6
6
7
7
NaNet is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For source availability and license information see `licence.txt`
If you use this source code or the associated dataset, please cite reference [[L'22](#references)]:
16
+
If you use this source code or the associated *Thorgal*dataset, please cite reference [[L'22](#references)]:
17
17
18
18
```bibtex
19
19
@Article{Labatut2022,
@@ -27,24 +27,27 @@ If you use this source code or the associated dataset, please cite reference [[L
27
27
doi = {10.1142/S0219525922400033},
28
28
}
29
29
```
30
+
If you use the *Game of Thrones* dataset, please cite reference [[A'24](#references)].
30
31
31
32
32
-
# Description
33
-
This set of R scripts aims at extracting and analyzing character networks extracted from graphic novels. It actually works on manually constituted CSV files, so in theory the work of fiction could be anything besides graphic novels, provided the input format is enforced.
33
+
##Description
34
+
This set of `R` scripts aims at extracting and analyzing character networks extracted from graphic novels. It actually works on manually constituted `CSV` files, so in theory the work of fiction could be any media, provided the input format is enforced.
34
35
35
-
The script does the following:
36
-
1.Extracts various networks based on some tabular data containing individual and relational information.
37
-
2.Computes a number of statistics and generates the corresponding plots.
38
-
3.Performs additional analysis of the networks.
36
+
These scripts do the following:
37
+
1.Extract various networks based on some tabular data containing individual and relational information.
38
+
2.Compute a number of statistics and generate the corresponding plots.
39
+
3.Perform additional analysis of the networks.
39
40
40
41
41
-
# Data
42
-
The raw dataset was manually constituted based on bande dessinée [Thorgal](https://en.wikipedia.org/wiki/Thorgal). The output files (graphs, plots, tables...) can be obtained by running the scripts, but they are also directly available on [Zenodo](https://doi.org/10.5281/zenodo.6395874).
42
+
##Data
43
+
The *Thorgal*raw dataset was manually constituted based on bande dessinée [Thorgal](https://en.wikipedia.org/wiki/Thorgal). The output files (graphs, plots, tables...) can be obtained by running script `Labatut2022.R`, but they are also directly available on [Zenodo](https://doi.org/10.5281/zenodo.6395874).
43
44
44
45

45
46
47
+
The *Game of Thrones* dataset was also manually constituted, based on the comics adaptation of G.R.R. Martin's [A Song of Ice and Fire](https://en.wikipedia.org/wiki/A_Song_of_Ice_and_Fire) novels. The output files can be obtained by running script `Amalvy2024.R`, or directly on [Zenodo](https://doi.org/10.5281/zenodo.13893061). Note that this data repository set also contains other data and results, corresponding to the processing described in article [[A'24](#references)].
46
48
47
-
# Organization
49
+
50
+
## Organization
48
51
Here are the folders composing the project:
49
52
* Folder `data`: contains the data used by the R scripts, as well as produced by them. Each subfolder corresponds to a different series, and has the same structure:
50
53
* File `characters.csv`: list of characters, see example in folder `Test`.
@@ -66,10 +69,10 @@ The various narrative units used in the scripts are as follows:
66
69
67
70
We also initially defined the notion of series (subseries), which could be a sequence of volumes, but did not need it in the end, and therefore the implementation is not complete for this narrative unit.
68
71
69
-
In addition, for ASOIAF, we had to add another narrative unit to match the novels: chapters. A chapter is a part of a volume. It contains panels, pages and scenes (a scene cannot span several chapters, like for volumes), and belongs to a single volume and a single arc.
72
+
In addition, for *Game of Thrones*, we had to add another narrative unit to match the novels: chapters. A chapter is a part of a volume. It contains panels, pages and scenes (a scene cannot span several chapters, like for volumes), and belongs to a single volume and a single arc.
70
73
71
74
72
-
# Installation
75
+
##Installation
73
76
You first need to install `R` and the required packages:
74
77
75
78
1. Install the [`R` language](https://www.r-project.org/)
@@ -85,19 +88,20 @@ A part of the analysis requires to compile some `C` code. The main instructions
85
88
3.`src/common/stats/pli/discpowerexp.R`: concerns the file in folder `\src/common/stats/pli/discpowerexp`.
86
89
87
90
88
-
# Use
91
+
##Use
89
92
In order to extract the networks from the raw data, compute the statistics, and generate the plots:
90
-
91
93
1. Open the `R` console.
92
94
2. Set the current directory as the working directory, using `setwd("<my directory>")`.
93
-
3. Run the main script `src/dev_main.R`.
95
+
3. Run the appropriate main script located in `src`.
94
96
95
97
The scripts will produce a number of files in the subfolders of folder `nets`. They are grouped in subsubfolders, each one corresponding to a specific topological measure (degree, closeness, etc.).
96
98
97
-
The script `src/Labatut2022.R` reproduces the computations described in article [[L'22](#references)]. Please, use [v1.0.2](https://github.com/CompNet/NaNet/releases/tag/v1.0.2) of the source code in the *Releases* page. Be warned that this will take a while (possibly several days). You can directly retrieve the data resulting from this process on [Zenodo](https://doi.org/10.5281/zenodo.6573491).
99
+
Main script `src/Labatut2022.R` reproduces the computations described in article [[L'22](#references)] for the *Thorgal* data. Please, use [v1.0.2](https://github.com/CompNet/NaNet/releases/tag/v1.0.2) of the source code in the *Releases* page. Be warned that this will take a while (possibly several days). You can directly retrieve the data resulting from this process on [Zenodo](https://doi.org/10.5281/zenodo.6573491).
100
+
101
+
Main script `Amalvy2024.R` extracts the *Game of Thrones* comics networks used in article [[A'24](#references)]. You should use [v1.1.1](https://github.com/CompNet/NaNet/releases/tag/v1.1.0) of the source code to reproduce this processing. It is much faster than for the *Thorgal* data.
98
102
99
103
100
-
# Dependencies
104
+
##Dependencies
101
105
Tested with `R` version 4.0.5, with the following packages:
102
106
*[`blockmodeling`](https://cran.r-project.org/web/packages/blockmodeling/): version 1.0.5.
103
107
*[`CINNA`](https://cran.r-project.org/web/packages/CINNA/): version 1.1.54.
@@ -109,7 +113,7 @@ Tested with `R` version 4.0.5, with the following packages:
109
113
*[`future.apply`](https://cran.r-project.org/web/packages/future.apply/): version 1.6.0.
110
114
*[`ggExtra`](https://cran.r-project.org/web/packages/ggExtra/): version 0.9.
111
115
*[`ggplot2`](https://cran.r-project.org/web/packages/ggplot2/): version 3.3.3.
112
-
*[`igraph`](http://igraph.org/r/) package: version 1.2.6.
116
+
*[`igraph`](http://igraph.org/r/): version 1.2.6.
113
117
*[`latex2exp`](https://cran.r-project.org/web/packages/latex2exp/): version 0.4.0.
114
118
*[`minpack.lm`](https://cran.r-project.org/web/packages/minpack.lm/): version 1.2.1.
115
119
*[`perm`](https://cran.r-project.org/web/packages/perm/): version 1.0.0.2.
@@ -123,9 +127,10 @@ Tested with `R` version 4.0.5, with the following packages:
123
127
*[`viridis`](https://cran.r-project.org/web/packages/viridis/): version 0.6.0.
124
128
125
129
126
-
# To-do List
130
+
##To-do List
127
131
* ...
128
132
129
133
130
-
# References
131
-
***[L'22]** Labatut, V. *Complex Network Analysis of a Graphic Novel: The Case of the Bande Dessinée Thorgal*, Advances in Complex Systems, p.22400033, 2022. [⟨hal-03694768⟩](https://hal.archives-ouvertes.fr/hal-03694768) - DOI: [10.1142/S0219525922400033](http://doi.org/10.1142/S0219525922400033)
134
+
## References
135
+
***[A'24]** A. Amalvy, M. Janickyj, S. Mannion, P. MacCarron & V. Labatut. *Interconnected Kingdoms: Comparing 'A Song of Ice and Fire' Crossmedia Adaptations Using Complex Networks*, Social Network Analysis and Mining 14:199, 2024. ⟨[hal-04722579](https://hal.archives-ouvertes.fr/hal-04722579)⟩ - DOI: [10.1007/s13278-024-01365-z](http://doi.org/10.1007/s13278-024-01365-z)
136
+
***[L'22]** V. Labatut. *Complex Network Analysis of a Graphic Novel: The Case of the Bande Dessinée Thorgal*, Advances in Complex Systems 25(5&6):22400033, 2022. ⟨[hal-03694768](https://hal.archives-ouvertes.fr/hal-03694768)⟩ - DOI: [10.1142/S0219525922400033](http://doi.org/10.1142/S0219525922400033)
0 commit comments