Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NetDecom-0.0.4.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NetDecom-0.0.4.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file NetDecom-0.0.4.2.tar.gz.

File metadata

  • Download URL: NetDecom-0.0.4.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for NetDecom-0.0.4.2.tar.gz
Algorithm Hash digest
SHA256 29dbd00bafb4f3ab1a7039b11990597d770f36fd50d75a9d264d49b946edb20d
MD5 f1b3cc930dad88b79e7321c4aeb16a29
BLAKE2b-256 0f9f0e8bb1be96e1973788144e413b7e133b1023ebe4baa3f1f4fc379435129e

See more details on using hashes here.

File details

Details for the file NetDecom-0.0.4.2-py3-none-any.whl.

File metadata

  • Download URL: NetDecom-0.0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for NetDecom-0.0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9cfe065aa788351c8d8e316f372b5c3ed47af527ea5f9c22921e37c20901a2ca
MD5 9b00acfe9d33d8feefcd3922390875f1
BLAKE2b-256 c9c0ac52fb035fe2dca0287a8c0f4a71a1a5a5a93939272d9784efded49c294a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page