Dimensionality Reduction and Decomposition of Undirected Graph Models and Bayesian Networks
Project description
NetDecom Documentation
Overview
NetDecom is a Python package for advanced graph analysis, providing algorithms for convex subgraph extraction and recursive decomposition of both undirected graphs and directed acyclic graphs (DAGs). Built on NetworkX, it offers efficient implementations of three core functionalities.
Installation
>>> pip install NetDecom
Core Functionalities
1. Convex Subgraph Extraction (Undirected Graphs)
Finds the minimal convex subgraph containing a given node set R:
>>> import NetDecom as nd
>>> import networkx as nx
>>> G = nx.Graph([(1, 2), (2, 3), (3, 4)])
>>> nd.IPA(G, [1, 3]) # Inducing Path Absorbing Algorithm
>>> nd.CMSA(G, [1, 3]) # Close Minimal Separator Absorbing Algorithm
2. Recursive Graph Decomposition
Decomposes graphs into maximal prime subgraphs using MCS ordering:
>>> MCS = [1, 2, 3, 4] # Maximum Clique Sequence
>>> nd.Decom_CMSA((G, MCS)) # CMSA-based decomposition
>>> nd.Decom_IPA((G, MCS)) # IPA-based decomposition
3. DAG Convex Subgraph Extraction
For directed acyclic graphs:
>>> D = nx.DiGraph([(1, 2), (2, 3), (3, 4)])
>>> nd.CMDSA(D, [1, 3]) # Close Minimal D-Sepator Absorbing Algorithm
Notes
- All input graphs must be NetworkX Graph/DiGraph objects.
- MCS ordering should follow graph topology.
- DAG decomposition features are under development.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file NetDecom-0.0.4.4.tar.gz.
File metadata
- Download URL: NetDecom-0.0.4.4.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1669cff7333ebddeacef671efd459ff2f8710a14a464ff6209939e5ae95c63e6
|
|
| MD5 |
f751f295da59d2eb5341ef6815315a3d
|
|
| BLAKE2b-256 |
ab3629c7194723939a644d40411d59a67def0c37e6326b45965d0b66faa1b0ff
|
File details
Details for the file NetDecom-0.0.4.4-py3-none-any.whl.
File metadata
- Download URL: NetDecom-0.0.4.4-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bdbedec5b103182f3f5d12a9f3d23716ef83e3e573083948734f1c9ccc35aca
|
|
| MD5 |
5f2ae72d09361d81839cc2ae6f6e762d
|
|
| BLAKE2b-256 |
38e61aba6252fa67ed7d141d385e225f0a2159635bed5b739feb0e1690d2c753
|