{"id":37703950,"url":"https://github.com/compnet/trajannet","last_synced_at":"2026-01-16T13:05:55.510Z","repository":{"id":145486935,"uuid":"164858846","full_name":"CompNet/TrajanNet","owner":"CompNet","description":"Extraction and analysis of a Trajan-related social network","archived":false,"fork":false,"pushed_at":"2024-10-23T09:25:41.000Z","size":40752,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-10T05:06:36.277Z","etag":null,"topics":["history","roman-empire","signed-graph","social-network","trajan"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CompNet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-01-09T12:28:34.000Z","updated_at":"2024-10-23T09:25:45.000Z","dependencies_parsed_at":"2024-02-21T17:00:33.327Z","dependency_job_id":null,"html_url":"https://github.com/CompNet/TrajanNet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CompNet/TrajanNet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompNet%2FTrajanNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompNet%2FTrajanNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompNet%2FTrajanNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompNet%2FTrajanNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CompNet","download_url":"https://codeload.github.com/CompNet/TrajanNet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompNet%2FTrajanNet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["history","roman-empire","signed-graph","social-network","trajan"],"created_at":"2026-01-16T13:05:52.301Z","updated_at":"2026-01-16T13:05:55.495Z","avatar_url":"https://github.com/CompNet.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"TrajanNet\n=======\n*Extraction and analysis of a [Trajan](https://en.wikipedia.org/wiki/Trajan)-related social network*\n\n* Copyright 2019-2020 Vincent Labatut \n\nTrajanNet 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`\n\n* Lab site: http://lia.univ-avignon.fr/\n* GitHub repo: https://github.com/CompNet/TrajanNet\n* Data: https://doi.org/10.5281/zenodo.6814111\n* Contact: Vincent Labatut \u003cvincent.labatut@univ-avignon.fr\u003e\n\n-----------------------------------------------------------------------\n\n![Trajan's multiplex network](data/nets/preview.png)\n\n\n# Description\nThis set of R scripts aims at analyzing a historical dataset describing the relationships between the Roman emperor Trajan and his entourage. It does the following:\n1. Extracts various networks based on some tabular data containing individual and relational attributes.\n2. Computes a number of statistics and generates the corresponding plots, for both the tables and graphs.\n3. Performs a sequence analysis of certain chronological attributes.\n\nIf you use these scripts or the associated data, please cite the reference [[V'20](#references)]:\n```\n@MastersThesis{Vallet2020,\n  author      = {Vallet, Gaëtane},\n  title       = {Les princes et les hommes : carrières et réseaux dans l'entourage de Trajan de 98 à 118 après J.-C.},\n  year        = {2020},\n  type        = {MA Thesis},\n  institution = {Avignon University},\n}\n```\n\n\n# Data\nThe raw dataset was manually elaborated by Gaëtane Vallet during her Master's thesis in ancient history. See her thesis (in French) for more information [[V'18](#references), [V'20](#references)]. The files produced by the scripts (graphs, plots, tables...) can be obtained by executing them, but they are also directly available on [Zenodo](https://doi.org/10.5281/zenodo.6814111).\n\n\n# Organization\nHere are the folders composing the project:\n* Folder `data`: contains the data used by the R scripts, as well as produced by them.\n  * Folder `tables`: input data presented as the following CSV tables\n    * `trajan_attributes.csv`: individual description of each historical character in the dataset.  \n    * `trajan_careers.csv`: careers of the character, described as sequences of positions.  \n    * `trajan_positions.csv`: list of professional positions a character can hold.  \n    * `trajan_relations.csv`: connections between the characters.  \n    * `trajan_typical_careers.csv`: ideal careers, described as sequences of positions.  \n  * Folder `nets`: networks procuded by the scripts, and the associated plots and tables.\n    * Folder `all`: network containing all the types of links at once (multiplex signed network).\n    * Folder `family`: network with only the family ties (uniplex signed network).\n    * Folder `friend`: network with only the friendship ties (uniplex unsigned network).\n    * Folder `pro`: network with only the professional ties (uniplex signed network).\n    * Folder `unknown`: network with relationships whose exact nature is unknown (uniplex signed network). \n    * Folder `signed`: signed network with no distinction between relationship types (signed collapsed multiplex network).\n      * Folder `na-as-positive*`: network obtained by considering the links whose sign is unknown as positive ones.\n      * Folder `na-as-ignored*`: network obtained by discarding the links whose sign is unknown.\n      * Folder `*-closure`: closure of the signed network obtained using *strong* structural balance.\n      * Folder `*-closure-poly`: closure of the signed network obtained using *weak* structural balance.\n  * Folder `attributes`: descriptive results obtained for the individual attributes.\n  * Folder `sequences`: descriptive results obtained for the individual attributes.\n    * Folder `withNAs`: gaps in careers are explicitly represented as missing values.\n    * Folder `withoutNAs`: gaps in careers are not represented at all.\n* Folder `src`: contains the `R` source code.\n\n\n# Installation\nYou just need to install `R` and the required packages:\n1. Install the [`R` language](https://www.r-project.org/)\n2. Download this project from GitHub and unzip.\n3. Install the required packages: \n   1. Open the `R` console.\n   2. Set the current directory as the working directory, using `setwd(\"\u003cmy directory\u003e\")`.\n   3. Run the install script `src/install.R`.\n\n\n# Use\nIn order to extract the networks from the raw data, compute the statistics, and generate the plots:\n1. Open the `R` console.\n2. Set the current directory as the working directory, using `setwd(\"\u003cmy directory\u003e\")`.\n3. Run the main script `src/main.R`.\n\nThe 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.). \n\nThe `verification.R` was used to check the consistency of the raw data. The rest of the scripts are just secondary functions called by `main.R`.\n\n\n# Dependencies\n* [`igraph`](http://igraph.org/r/) package: build and handle graphs.\n* [`signnet`](https://github.com/schochastics/signnet): analysis of signed graphs.\n* [`graphlayouts`](https://cran.rstudio.com/web/packages/graphlayouts): plot graphs.\n* [`ggraph`](https://cran.rstudio.com/web/packages/ggraph): plot graphs.\n* [`TraMineR`](http://traminer.unige.ch/): sequence analysis.\n* [`SDMTools`](https://cran.rstudio.com/web/packages/SDMTools): misc.\n* [`scales`](https://cran.rstudio.com/web/packages/scales): color conversion.\n* [`circlize`](https://cran.rstudio.com/web/packages/scales): circos-type plots.\n* [`plot.matrix`](https://cran.rstudio.com/web/packages/scales): matrix plots.\n* [`alluvial`](https://cran.rstudio.com/web/packages/scales): alluvial diagrams.\n* [`cluster`](https://cran.rstudio.com/web/packages/scales): cluster analysis.\n* [`dendextend`](https://cran.rstudio.com/web/packages/scales): dendrogram-related features.\n\n\n# To-do List\n* Signed nets: \n  * Consider the evolution of the relationships\n  * Synchronous closure, separate the different steps until complete graph\n* Structural similarity between spaniards / the rest (and other attributes)\n* Multiplex plot of the different types of links (didn't find an appropriate tool)\n\n\n# References\n* **[V'20]** Vallet, G. *Les princes et les hommes : carrières et réseaux dans l’entourage de Trajan de 98 à 118 après J.-C.*, Second part of the Master's thesis, Avignon University, Human and Social Sciences Faculty, History Department, Avignon, France.\n* **[V'18]** Vallet, G. *L'entourage de Trajan : étude prosopographique de l'entourage du prince de 98-117 apr. J.-C.*, First part of the Master's thesis, Avignon University, Human and Social Sciences Faculty, History Department, Avignon, France.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompnet%2Ftrajannet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompnet%2Ftrajannet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompnet%2Ftrajannet/lists"}