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
* Update README to reflect changes
* Remove references to libgen in Makefile (no longer used for Mac or Linux).
* Add test suite for input-output functions.
* Remove debug flags from tests and have functions return (1) instead of exit(1).
* Use #define instead of const for Ubuntu gcc.
* Use stderr instead of stdout for error outputs.
Copy file name to clipboardExpand all lines: README.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,18 +94,21 @@ make
94
94
Once compiled use the following command:
95
95
96
96
```
97
-
./graphpass {FLAGS}
97
+
./graphpass {INPUT PATH} {OUTPUT PATH} {FLAGS}
98
98
```
99
99
100
100
The following flags are available:
101
101
102
-
*`--file {FILENAME}` - sets the default filename. If not set, `graphpass` will use
103
-
a default network in `src/resources`.
104
-
*`--dir {DIRECTORY}` - the path to look for {FILENAME} by default this is `src/resources/`
105
-
*`--output {OUTPUT}` - the directory to send output files such as filtered graphs and data reports.
106
-
*`--percent {PERCENT}` - a percentage to remove from the file. By default this is 0.0.
107
-
*`--method {options}` - a string of various methods through which to filter the
102
+
*`--input {FILEPATH} or -i` - The filepath of the file to run GraphPass on. If not set, GraphPass will use
103
+
a default network in `src/resources`. This will override the value in `{INPUT PATH}`.
104
+
*`--output {FILEPATH} or -o` - The filepath for outputs, overriding `{OUTPUT PATH}`. If the output path contains a filename, GraphPass will use that, otherwise it will default to the filename provided in `{INPUT PATH}`. Unless the quickpass (`-q`) is selected, the filename will also be altered to show the percentage filtered from the graph and the method used.
105
+
*`--percent {PERCENT} or -p` - a percentage to remove from the file. By default this is 0.0.
106
+
*`--method {options} or -m` - a string of various methods through which to filter the
108
107
graph.
108
+
*`--quick or -q` - GraphPass will run a basic set of algorithms for visualization with no filtering. The filename will be the same as the input filename.
109
+
*`--gexf or -g` - GraphPass will return the graph output in gexf (good for SigmaJS) instead of graphml.
110
+
*`--max-nodes {Value}` - Change default maximum number of nodes that GraphPass will accept. By default this is 50,000. Values larger than 50k may cause GraphPass to use up a computer's memory.
111
+
*`--max-edges {Value}` - Change default maximum number of edges that GraphPass will accept. By default this is 500,000. Values larger than 500k are unlikely to cause significant delays in computation time, but could result in memory issue upon visualization in Gephi or SigmaJS.
109
112
110
113
These various methods are outlined below:
111
114
@@ -122,21 +125,19 @@ These various methods are outlined below:
122
125
For example:
123
126
124
127
```
125
-
./graphpass --percent 10 --methods b --file links-for-gephi.graphml --output OUT/
128
+
./graphpass /path/to/links-for-gephi.graphml --percent 10 --methods b /path/to/output_filename
126
129
```
127
130
128
-
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 `src/resources` and output a new one to `/OUT` (titled `links-for-gephi10Betweenness.graphml`).
131
+
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 `path/to/input` and output a new one to `/path/to/output_filename.graphml` (titled `output_filename10Betweenness.graphml`).
129
132
130
133
# Optional arguments
131
134
132
135
*`--report` or `-r` : create an output report showing the impact of filtering on graph features.
133
136
*`--no-save` or `-n` : does not save any filtered files (useful if you just want a report).
134
-
*`--quick` or `-q` : provides a "quickrun" for basic
135
-
*`--gexf` or `-g` : output as a .gexf (e.g. for SigmaJS inputs) instead of .graphml.
136
137
137
138
# Troubleshooting
138
139
139
-
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.
140
+
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.
0 commit comments