Skip to main content

Organizational Network Analysis Platform using ML and Graph Analytics

Project description

Organizational Network Analysis (ONA) Platform

A comprehensive Python application for analyzing organizational networks using machine learning and graph analytics. This platform transforms digital exhaust (emails, Slack messages, calendar data, code commits, etc.) into actionable insights about organizational structure, collaboration patterns, and network dynamics.

Features

  • Multi-source Data Ingestion: Supports email, Slack/Teams, calendar, documents, code repositories, and HRIS systems
  • Graph Construction: Builds weighted, temporal organizational graphs with sophisticated edge weighting
  • Network Metrics: Computes centrality measures (degree, betweenness, eigenvector, closeness), structural holes, and core-periphery analysis
  • Community Detection: Multiple algorithms (Louvain, Infomap, Label Propagation, SBM)
  • Machine Learning: Graph Neural Networks (GCN, GAT), Node2Vec embeddings, link prediction
  • NLP Analysis: Topic modeling (LDA, BERTopic), expertise inference, sentiment analysis
  • Temporal Analysis: Change point detection, onboarding integration tracking, network evolution
  • Multi-modal Fusion: Combines insights from multiple data sources
  • Anomaly Detection: Detects isolation, overload, and temporal anomalies
  • Intervention Framework: FINDING → HYPOTHESIS → INTERVENTION → MEASUREMENT workflow
  • Ego Network Analysis: Personal network analysis for individuals
  • Cross-Modal Validation: Validates insights across different data sources
  • Team Stability Analysis: Time-Size Paradox analysis for team retention and stability
  • Bonding/Bridging Analysis: Analyzes within-group (bonding) vs between-group (bridging) connections
  • Reporting: HTML reports and static or interactive network views (Pyvis, etc.)
  • Privacy-First: Built with privacy and ethics considerations

Installation

Dependencies are declared in pyproject.toml and pinned in uv.lock. Use uv for reproducible installs, or install with pip and extras as usual.

# Option A: uv (recommended — uses uv.lock)
uv sync --all-extras

# Option B: pip editable install with optional stacks
pip install -e ".[all]"

# Download spaCy language model (NLP extra)
python -m spacy download en_core_web_sm

Core-only install: uv sync or pip install -e .. After changing dependencies in pyproject.toml, refresh the lockfile with uv lock and commit uv.lock.

Quick Start

from orgnet.core import OrganizationalNetworkAnalyzer

# Initialize analyzer
analyzer = OrganizationalNetworkAnalyzer(config_path="config.yaml")

# Load data
analyzer.load_data()

# Build graph
graph = analyzer.build_graph()

# Run analysis
results = analyzer.analyze()

# Generate report
analyzer.generate_report(output_path="report.html")

Testing

Run the test suite:

pytest

For coverage report:

pytest --cov=orgnet --cov-report=html

See tests/README.md for more details.

Code Quality

Format code with black:

black orgnet/ tests/ example.py --line-length 100

Check code style with flake8:

flake8 orgnet/ tests/ example.py --max-line-length=100

Or use the Makefile:

make format   # Format code
make lint     # Check style
make test     # Run tests
make check    # Format, lint, and test

Project Structure

ONA/
├── orgnet/
│   ├── __init__.py
│   ├── core.py                 # Main analyzer class
│   ├── config.py               # Configuration management
│   ├── data/
│   │   ├── __init__.py
│   │   ├── ingestion.py        # Data ingestion layer
│   │   ├── models.py           # Data models
│   │   └── processors.py       # Data processing utilities
│   ├── graph/
│   │   ├── __init__.py
│   │   ├── builder.py          # Graph construction
│   │   ├── weights.py          # Edge weight calculations
│   │   └── temporal.py         # Temporal graph handling
│   ├── metrics/
│   │   ├── __init__.py
│   │   ├── centrality.py       # Centrality measures
│   │   ├── structural.py       # Structural holes, core-periphery
│   │   └── community.py        # Community detection
│   ├── ml/
│   │   ├── __init__.py
│   │   ├── gnn.py              # Graph Neural Networks
│   │   ├── embeddings.py       # Node2Vec, etc.
│   │   └── link_prediction.py  # Link prediction models
│   ├── nlp/
│   │   ├── __init__.py
│   │   ├── topics.py           # Topic modeling
│   │   └── expertise.py        # Expertise inference
│   ├── temporal/
│   │   ├── __init__.py
│   │   ├── change_detection.py # Change point detection
│   │   └── onboarding.py      # Onboarding analysis
│   ├── visualization/
│   │   ├── __init__.py
│   │   ├── network.py          # Network visualizations
│   │   └── dashboards.py       # Dashboard components
├── config.yaml                 # Configuration file
├── pyproject.toml              # Package metadata and optional dependency groups
├── uv.lock                     # Resolved dependency lockfile (uv)
└── README.md                   # This file

Configuration

Edit config.yaml to configure:

  • Data source settings
  • Graph construction parameters
  • Analysis preferences
  • Privacy settings

Privacy & Ethics

This tool is designed with privacy in mind:

  • Aggregates data before storage
  • Respects retention policies
  • Focuses on patterns, not individual monitoring
  • Configurable anonymization

Important: Always obtain proper consent and follow organizational policies before deploying.

License

MIT License

Contributing

Contributions welcome! Please read the contributing guidelines first.

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

orgnet-0.2.0.tar.gz (575.5 kB view details)

Uploaded Source

Built Distribution

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

orgnet-0.2.0-py3-none-any.whl (264.4 kB view details)

Uploaded Python 3

File details

Details for the file orgnet-0.2.0.tar.gz.

File metadata

  • Download URL: orgnet-0.2.0.tar.gz
  • Upload date:
  • Size: 575.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for orgnet-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bc956bf1b237f0b4a35cb61c9be6e0c37f0800cbbe3b01d2b7aeddba43e150e4
MD5 d7173311a6a879071e4360264671f261
BLAKE2b-256 1bc19a4e02ad3c449baa102b3d854c6bc713789133e0a6b2b8ec3c8869728995

See more details on using hashes here.

Provenance

The following attestation bundles were made for orgnet-0.2.0.tar.gz:

Publisher: publish.yml on kylejones200/orgnet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file orgnet-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: orgnet-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 264.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for orgnet-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2718d82cc7e00a91d48fd43b322973e3d4cc392f8333f941758edb7a03365c6a
MD5 f75ddfd4b1a5fb7548057a2b451206c7
BLAKE2b-256 5d126033e07c2cb7c8805dc9535a2866567e07f388950aa376fb14ec4f5a3adb

See more details on using hashes here.

Provenance

The following attestation bundles were made for orgnet-0.2.0-py3-none-any.whl:

Publisher: publish.yml on kylejones200/orgnet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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