Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Nodal centrality for multiplex networks

License

NotificationsYou must be signed in to change notification settings

CompNet/MultiplexCentrality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodal centrality for multiplex networks

  • Copyright 2015-16 Alexandre Reiffers & Vincent Labatut.

Opinion Centrality 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 seelicence.txt


Description

This set ofR scripts was designed for two purposes:

  1. Process the opinion centrality, a new centrality measure described in our paper.
  2. Compare it to other existing multiplex centrality measures.

Our scripts were applied to a collection of multiplex networks obtained from public sources (see the Data section below).These data are present in this GitHub project (folderdata).

The tool itself, the data and the experimental results are all described in our article [RL'17].

If you use this software, please cite article [RL'17]:

@Article{Reiffers2017,author    ={Reiffers, Alexandre and Labatut, Vincent},title     ={Opinion-based centrality in multiplex networks: A convex optimization approach},journal   ={Network Science},year      ={2017},volume    ={5},number    ={2},pages     ={213-234},doi       ={10.1017/nws.2017.7},}

Organization

Themain.R script can be used to reproduce the whole process: compute the opinion centrality, then compare it to other centralities.Note that this script will generate aplots folder containing a bunch of files (and it may take a while).

Themodel.R script contains aprocess.opinion.centrality function, which allows the processing of the opinion measure.Its first parameter is a multiplex network, represented as a list of igraph graphs.

Installation

  1. Install theR language
  2. Install the following R packages:
  3. Download this project from GitHub and unzip.
  4. LaunchR, setup the working directory withsetwd so that it points at the root of this project.

Use

In order to process the opinion measure and compare it to other multiplex centrality measures:

  1. Open theR console.
  2. Set the project root as the working directory, usingsetwd("<my directory>").
  3. Possibly comment/uncomment certain lines in the main scriptmain.R (to disable/enable certain operations), then launch it.

The script will produce the following files in the folderplots, placed in subfolders whose names correspond to the considered networks:

  • opinion-centrality.csv: table containing the opinion centrality values.
  • corr_plots: Spearman's correlation between the opinion centrality and the others measures (and itself with various parameter values). Also contains a CSV file with the actual values.
  • graphs: aggregated version of the graph, plotted to visually compare the opinion centrality (node color) and some other multiplex measure (node size). The folder also contains a graphml file representing the same graph.
  • histograms: distribution of the opinion centrality.
  • rank_barplots: rank difference between the opinion centrality and the other multiplex measures. Each bar represents a node, its height is the rank difference when switching from the considered measure and the opinion centrality, and the nodes are ordered by decreasing rank according the considered measure.
  • rank_lineplots: also represents the rank difference between the opinion centrality and the other measures, but this time the nodes are ordered by increasing rank difference.

Extension

You may want to apply the scripts to other networks. If you are just interested in the opinion centrality, directly use theprocess.opinion.centrality function inmodel.R.If you also want to perform the comparison, note that the other multiplex measures need to be processed first, using any tool you think is appropriate.

For our article, we usedMuxViz, an open source tool by Manlio de Domenico. Note hispersonal Web page additionally proposes many multilayer networks to play with.

When placing new data in the data folder, be sure to respect the same organization and file formats as the networks already present.Finally, you need to add the appropriate information regarding your new networks in thedata.R script, and adapt the beginning ofmain.R (and possibly comment the datasets you do not want to process there).

Dependencies

The scripts rely on the followingRpackages:

  • igraph package: used to build and handle graphs.
  • magic package: used in the gradient function.
  • ggplot2 package: used to generate plots.
  • reshape2 package: used to generate plots.
  • corrplot package: used to generate plots.
  • plotrix package: used to generate plots.

And some measures were processed using the following software:

  • MuxViz platform: used to process other multiplex centrality measures (optional).

Data

We used data publicly available from the following sources:

References

  • [RL'17] A. Reiffers & V. Labatut,Opinion-Based Centrality in Multiplex Networks: A Convex Optimization Approach, Network Science, 5(2)/213-234, 2017. DOI:10.1017/nws.2017.7 -⟨hal-01486629⟩

About

Nodal centrality for multiplex networks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp