XFlow Homepage | Documentation | Paper Collection
XFlow is a library built upon Python to easily write and train method for a wide range of applications related to graph flow problems. XFlow is organized task-wise, which provide datasets benchmarks, baselines and auxiliary implementation.
Installation
pip install xflow-net
Example
import sys
import os
current_script_directory = os.path.dirname(os.path.abspath(__file__))
xflow_path = os.path.join(current_script_directory, '..', '..', 'xflow')
sys.path.insert(1, xflow_path)
from xflow.dataset.nx import BA, connSW
from xflow.dataset.pyg import Cora
from xflow.diffusion.SI import SI
from xflow.diffusion.IC import IC
from xflow.diffusion.LT import LT
from xflow.seed import random as seed_random, degree as seed_degree, eigen as seed_eigen
from xflow.util import run
# graphs to test
fn = lambda: connSW(n=1000, beta=0.1)
fn.__name__ = 'connSW'
gs = [Cora, fn, BA]
# diffusion models to test
df = [SI, IC, LT]
# seed configurations to test
se = [seed_random, seed_degree, seed_eigen]
# run
# configurations of IM experiments
from xflow.method.im import pi as im_pi, degree as im_degree, sigma as im_sigma, celfpp as im_celfpp, greedy as im_greedy
me = [im_pi]
rt = run (
graph = gs, diffusion = df, seeds = se,
method = me, eval = 'im', epoch = 10,
budget = 10,
output = [ 'animation', 'csv', 'fig'])
[Result]
Create your own models
Benchmark Task
Influence Maximization
Blocking Maximization
- greedy
- pi
- sigma
- eigen-centrality
- degree
Source Localization
- NETSLEUTH (Legacy and Fast versions)
- Jordan Centrality
- LISN.
Experimental Configurations
- Graphs: Compatiable with graph objects/class by Networkx and Pytorch Geometric
- Diffusion Models: Support NDLib
Contact
Feel free to email us if you wish your work to be listed in this repo. If you notice anything unexpected, please open an issue and let us know. If you have any questions or are missing a specific feature, feel free to discuss them with us. We are motivated to constantly make XFlow even better.
Metadata
Release files for xflow-net 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xflow-net-0.1.3.tar.gz | 35.6 kB | Without provenance | Details for xflow-net-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xflow_net-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for xflow_net-0.1.3-py3-none-any.whl |
Total release size: 84.3 kB
Release files / xflow-net-0.1.3.tar.gz
| Download URL | xflow-net-0.1.3.tar.gz |
|---|---|
| Size | 35.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86fbfe85355dbcd11fdecf921dde8d78fac9b861b727e39457d99d165bdbc9c1
|
|
BLAKE2b-256 checksum How to use checksums |
c645a0d4bcaf987968040e2e096d75aaa423f2d029327b72831ba68dfbd29a75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / xflow_net-0.1.3-py3-none-any.whl
| Download URL | xflow_net-0.1.3-py3-none-any.whl |
|---|---|
| Size | 48.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a5399dab149e4e7e4b1b33d3f6a591180b8b549bad152da83cf0517946ffc27
|
|
BLAKE2b-256 checksum How to use checksums |
4762eb832811adc1697de1c1d0a1d53ba9c03f47291b56265db0e8a6590f4034
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for xflow-net 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.