Graphpass
0.0.2
A helper library for network filtering, analysis and visualization
|
GraphPass is a helper library to filter networks and provide a default visualization output for Gephi or SigmaJS. It prevents the infamous "borg cube" result when entering large files into Gephi, allowing you to work with ready-made network layouts.
This library requires the C Igraph Library and a C compiler, such as gcc.
For Linux (Ubuntu):
Install the igraph dependencies:
For MacOS:
Using brew, the following commands will install dependencies:
Clone the repository with:
Type
and verify that the path displayed there matches the default IGRAPH_PATH value provided in the Makefile. By default this is /usr/local/Cellar/igraph/0.7.1_6/
for MacOS and /usr/local
for linux.
Then
Once compiled use the following command:
The following flags are available:
--file {FILENAME}
- sets the default filename. If not set, graphpass will use a default network in /assets. --dir {DIRECTORY}
- the path to look for {FILENAME} by default this is assets/
--output {OUTPUT}
- the directory to send output files such as filtered graphs and data reporst. --percent {PERCENT}
- a percentage to remove from the file. By default this is 0.0. --method {options}
- a string of various methods through which to filter the graph. These are outlined below:
a
: authorityb
: betweennessd
: simple degreee
: eigenvectorh
: hubi
: in-degreeo
: out-degreep
: pagerankr
: randomFor example:
Will remove 10% of the graph using betweenness as a cutting measure and lay the network out. It will find links-for-gephi.graphml
file in /assets
and output a new one to /OUT
(titled links-for-gephi10Betweenness.graphml
).
--report
or -r
: create an output report showing the impact of filtering on graph features.--no-save
or -n
: does not save any filtered files (useful if you just want a report).--quick
or -q
: provides a "quickrun" for basic--gexf
or -g
: output as a .gexf (e.g. for SigmaJS inputs) instead of .graphml.It is possible that you can get a "error while loading shared libraries" error in Linux. If so, try running sudo ldconfig
to set the libraries path for your local installation of igraph.
Licensed under the Apache License, Version 2.0.
This work is primarily supported by the Andrew W. Mellon Foundation. Additional funding for the Toolkit has come from the U.S. National Science Foundation, Columbia University Library's Mellon-funded Web Archiving Incentive Award, the Natural Sciences and Engineering Research Council of Canada, the Social Sciences and Humanities Research Council of Canada, and the Ontario Ministry of Research and Innovation's Early Researcher Award program. Any opinions, findings, and conclusions or recommendations expressed are those of the researchers and do not necessarily reflect the views of the sponsors.
The author would also like to thank Drs. Ian Milligan & Jimmy Lin plus Nick Nuest and Samantha Fritz for their kind advice and support.