An open API service indexing awesome lists of open source software.

https://github.com/sauravbhattacharya001/graphvisual

A graph visual application to study community evolution in student communities.
https://github.com/sauravbhattacharya001/graphvisual

bluetooth-proximity community-detection data-visualization desktop-application graph-visualization java jung-framework maven network-analysis postgresql research-tool social-network-analysis

Last synced: 3 days ago
JSON representation

A graph visual application to study community evolution in student communities.

Awesome Lists containing this project

README

          

# πŸ“Š GraphVisual

**Community evolution visualization for student social networks**

Built with Java and [JUNG](http://jung.sourceforge.net/) (Java Universal Network/Graph Framework)

[![CI](https://github.com/sauravbhattacharya001/GraphVisual/actions/workflows/ci.yml/badge.svg)](https://github.com/sauravbhattacharya001/GraphVisual/actions/workflows/ci.yml)
[![CodeQL](https://github.com/sauravbhattacharya001/GraphVisual/actions/workflows/codeql.yml/badge.svg)](https://github.com/sauravbhattacharya001/GraphVisual/actions/workflows/codeql.yml)
[![Java](https://img.shields.io/badge/Java-8%2B-orange?logo=openjdk)](https://openjdk.org/)
[![JUNG](https://img.shields.io/badge/JUNG-2.0.1-blue)](http://jung.sourceforge.net/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/sauravbhattacharya001/GraphVisual/blob/master/LICENSE)
[![Docker](https://github.com/sauravbhattacharya001/GraphVisual/actions/workflows/docker.yml/badge.svg)](https://github.com/sauravbhattacharya001/GraphVisual/actions/workflows/docker.yml)
[![Coverage](https://github.com/sauravbhattacharya001/GraphVisual/actions/workflows/coverage.yml/badge.svg)](https://github.com/sauravbhattacharya001/GraphVisual/actions/workflows/coverage.yml)
[![GitHub repo size](https://img.shields.io/github/repo-size/sauravbhattacharya001/GraphVisual)](https://github.com/sauravbhattacharya001/GraphVisual)
[![Pages](https://github.com/sauravbhattacharya001/GraphVisual/actions/workflows/pages.yml/badge.svg)](https://github.com/sauravbhattacharya001/GraphVisual/actions/workflows/pages.yml)
[![Maven](https://img.shields.io/badge/Build-Maven-C71A36?logo=apachemaven)](https://maven.apache.org/)
[![GitHub stars](https://img.shields.io/github/stars/sauravbhattacharya001/GraphVisual?style=flat&logo=github)](https://github.com/sauravbhattacharya001/GraphVisual/stargazers)
[![Last commit](https://img.shields.io/github/last-commit/sauravbhattacharya001/GraphVisual)](https://github.com/sauravbhattacharya001/GraphVisual/commits/master)
[![Release](https://img.shields.io/github/v/release/sauravbhattacharya001/GraphVisual?logo=github)](https://github.com/sauravbhattacharya001/GraphVisual/releases/latest)
[![Open Issues](https://img.shields.io/github/issues/sauravbhattacharya001/GraphVisual)](https://github.com/sauravbhattacharya001/GraphVisual/issues)
[![Contributors](https://img.shields.io/github/contributors/sauravbhattacharya001/GraphVisual)](https://github.com/sauravbhattacharya001/GraphVisual/graphs/contributors)
[![57 Analyzers](https://img.shields.io/badge/Analyzers-57-blueviolet)](ALGORITHMS.md)
[![Publish](https://github.com/sauravbhattacharya001/GraphVisual/actions/workflows/publish.yml/badge.svg)](https://github.com/sauravbhattacharya001/GraphVisual/actions/workflows/publish.yml)
[![Dependabot](https://img.shields.io/badge/Dependabot-enabled-025E8C?logo=dependabot)](https://github.com/sauravbhattacharya001/GraphVisual/blob/master/.github/dependabot.yml)
[![2500+ Tests](https://img.shields.io/badge/Tests-2500%2B-brightgreen)](Gvisual/test/)

---

## Overview

GraphVisual is a desktop application for studying **community evolution** in student populations using Bluetooth proximity data. It processes meeting records from a PostgreSQL database, classifies social relationships (friends, classmates, strangers, study groups, familiar strangers), and renders interactive graph visualizations with timeline playback.

The tool was developed for research on **social network analysis** β€” specifically understanding how communities form, dissolve, and evolve over time in university settings.

## Features

- **Interactive graph visualization** β€” Drag, zoom, rotate nodes with JUNG's built-in graph mouse
- **Timeline playback** β€” Animate community graphs across 92 days (March–May 2011) with play/pause/stop controls
- **5 relationship categories** β€” Friends (green), Classmates (blue), Familiar Strangers (gray), Strangers (red), Study Groups (orange)
- **Adjustable thresholds** β€” Tune meeting duration and frequency thresholds per relationship type in real-time
- **Cluster-based layout** β€” Nodes auto-grouped into a 3Γ—3 grid by relationship type, with randomized positioning
- **Edge weighting** β€” Line thickness reflects interaction frequency Γ— duration
- **New member highlighting** β€” Nodes appearing for the first time are drawn larger
- **Notes panel** β€” Annotate each timestamp during analysis
- **Graph export** β€” Save visualizations as PNG images, edge lists, and JSON (D3.js/vis.js/Cytoscape.js compatible)
- **Network statistics panel** β€” Real-time metrics including node/edge counts, per-category breakdowns, graph density, average/max degree, average edge weight, isolated node count, and top-3 hub nodes
- **Centrality analysis** β€” Compute degree, betweenness (Brandes' algorithm), and closeness centrality for all nodes. Interactive panel with metric sorting, top-10 ranking with medals, network topology classification, and per-metric averages/maximums
- **Small-world analysis** β€” Test whether a graph exhibits Watts-Strogatz small-world properties. Computes local/global clustering coefficients, average path length, sigma (Οƒ) and omega (Ο‰) coefficients, random/lattice baselines, and classifies networks as Small-World, Random-Like, Lattice-Like, or Disconnected
- **Subgraph extraction** β€” Extract focused subgraphs using a fluent builder API. Filter by edge type, weight range, degree range, k-hop neighborhood, node whitelist, or time window. Export results as CSV edge lists with retention statistics and edge type breakdowns
- **Community detection** β€” Interactive browser tool with 4 algorithms (Louvain modularity, Label Propagation, Girvan-Newman edge betweenness, Spectral Bisection). 6 preset graphs (Karate Club, Barbell, Caveman, SBM, Ring of Cliques), force-directed layout with adjustable parameters, color-coded communities, modularity scoring, per-community density stats, drag-to-move nodes, pan/zoom, JSON/SVG export
- **Network flow visualizer** β€” Interactive browser tool for max-flow / min-cut visualization with Edmonds-Karp and Ford-Fulkerson algorithms. Step-by-step animation, 5 preset networks (simple, diamond, bipartite matching, complex, bottleneck), canvas graph editor, min-cut highlighting, JSON/SVG export. Java `NetworkFlowExporter` class for programmatic flow computation and HTML export
- **Random graph generator** β€” Interactive browser tool for generating graphs using 7 classic models (ErdΕ‘s–RΓ©nyi, BarabΓ‘si–Albert, Watts-Strogatz, Random Geometric, Complete, Star, Ring). Force-directed layout, degree/community coloring, drag-and-zoom, degree distribution chart, real-time stats (density, clustering, diameter, components), JSON/PNG export
- **Network resilience analyzer** β€” Interactive browser tool for simulating targeted and random attacks on networks. 4 attack strategies (highest-degree, highest-betweenness, random, cascading with recalculation), 6 preset graphs (BarabΓ‘si-Albert, ErdΕ‘s-RΓ©nyi, Watts-Strogatz, Star, Grid, Karate Club), real-time robustness curve plotting, R-index computation, strategy comparison overlay, step-through animation, attack log, force-directed layout with drag interaction

## Architecture

GraphVisual consists of 145 source classes (~55,000+ lines of production code, 100,000+ total with tests), 57 graph analyzers, and a Bluetooth-to-graph data pipeline. See **[ARCHITECTURE.md](ARCHITECTURE.md)** and **[ALGORITHMS.md](ALGORITHMS.md)** for full details including the analyzer reference table, design patterns, and dependency map.

```
Gvisual/src/
β”œβ”€β”€ gvisual/ # 145 classes β€” GUI, edge model, 57 analyzers, utilities
β”‚ β”œβ”€β”€ Main.java # Swing GUI β€” graph panel, timeline, controls
β”‚ β”œβ”€β”€ edge.java # Edge model (type, vertices, weight, label)
β”‚ β”œβ”€β”€ EdgeType.java # Enum β€” relationship categories, colors, defaults
β”‚ β”œβ”€β”€ GraphStats.java # Network metrics (density, degree, hubs)
β”‚ β”œβ”€β”€ GraphMLExporter.java # GraphML XML export
β”‚ β”œβ”€β”€ JsonGraphExporter.java # JSON export (D3.js/vis.js/Cytoscape.js compatible)
β”‚ β”œβ”€β”€ GraphGenerator.java # 10 synthetic graph topologies
β”‚ β”œβ”€β”€ GraphUtils.java # BFS, connected components, utility methods
β”‚ β”œβ”€β”€ GraphPartitioner.java # Spectral/Kernighan-Lin partitioning
β”‚ β”œβ”€β”€ ForceDirectedLayout.java # Force-directed graph layout (Barnes-Hut)
β”‚ β”œβ”€β”€ AnalysisTask.java # Async analysis with timeout/cancellation
β”‚ β”œβ”€β”€ AnalysisResult.java # Analysis result container
β”‚ β”‚
β”‚ │── # ─── Structural Analyzers ──────────────────
β”‚ β”œβ”€β”€ ArticulationPointAnalyzer.java # Cut vertices/bridges (Tarjan's)
β”‚ β”œβ”€β”€ BipartiteAnalyzer.java # Bipartiteness testing + 2-coloring
β”‚ β”œβ”€β”€ ChordalGraphAnalyzer.java # Chordal graph recognition (PEO)
β”‚ β”œβ”€β”€ CliqueAnalyzer.java # Maximal cliques (Bron-Kerbosch)
β”‚ β”œβ”€β”€ CycleAnalyzer.java # Cycle detection and enumeration
β”‚ β”œβ”€β”€ EulerianPathAnalyzer.java # Euler path/circuit (Hierholzer's)
β”‚ β”œβ”€β”€ GraphComplementAnalyzer.java # Graph complement computation
β”‚ β”œβ”€β”€ GraphIsomorphismAnalyzer.java # Graph isomorphism testing
β”‚ β”œβ”€β”€ GraphIsomorphismChecker.java # VF2-inspired isomorphism (backtracking)
β”‚ β”œβ”€β”€ GraphMinorAnalyzer.java # Graph minor detection
β”‚ β”œβ”€β”€ GraphRegularityAnalyzer.java # Regularity testing
β”‚ β”œβ”€β”€ GraphSymmetryAnalyzer.java # Automorphism & symmetry analysis
β”‚ β”œβ”€β”€ LineGraphAnalyzer.java # Line graph construction + analysis
β”‚ β”œβ”€β”€ PerfectGraphAnalyzer.java # Perfect graph recognition
β”‚ β”œβ”€β”€ PlanarGraphAnalyzer.java # Planarity testing
β”‚ β”œβ”€β”€ TreeAnalyzer.java # Tree properties, LCA, diameter
β”‚ β”œβ”€β”€ TopologicalSortAnalyzer.java # Topo sort + cycle detection
β”‚ β”œβ”€β”€ StronglyConnectedComponentsAnalyzer.java # SCC (Tarjan/Kosaraju)
β”‚ β”‚
β”‚ │── # ─── Centrality & Ranking ──────────────────
β”‚ β”œβ”€β”€ NodeCentralityAnalyzer.java # Degree/betweenness/closeness
β”‚ β”œβ”€β”€ EdgeBetweennessAnalyzer.java # Edge betweenness centrality
β”‚ β”œβ”€β”€ PageRankAnalyzer.java # PageRank (power iteration)
β”‚ β”œβ”€β”€ DegreeDistributionAnalyzer.java # Degree stats + power-law fitting
β”‚ β”œβ”€β”€ RichClubAnalyzer.java # Rich-club coefficient
β”‚ β”‚
β”‚ │── # ─── Community & Clustering ────────────────
β”‚ β”œβ”€β”€ CommunityDetector.java # Connected component communities
β”‚ β”œβ”€β”€ LouvainCommunityDetector.java # Louvain modularity optimization
β”‚ β”œβ”€β”€ CliqueCoverAnalyzer.java # Clique cover computation
β”‚ β”œβ”€β”€ GraphClusterQualityAnalyzer.java # Cluster quality metrics
β”‚ β”œβ”€β”€ KTrussAnalyzer.java # K-truss decomposition
β”‚ β”œβ”€β”€ MotifAnalyzer.java # Network motif detection
β”‚ β”œβ”€β”€ NodeSimilarityAnalyzer.java # Jaccard/cosine node similarity
β”‚ β”œβ”€β”€ SignedGraphAnalyzer.java # Signed graph balance theory
β”‚ β”œβ”€β”€ StructuralHoleAnalyzer.java # Burt's structural holes
β”‚ β”‚
β”‚ │── # ─── Optimization & NP-hard ────────────────
β”‚ β”œβ”€β”€ BandwidthMinimizer.java # Graph bandwidth minimization
β”‚ β”œβ”€β”€ ChromaticPolynomialCalculator.java # Chromatic polynomial (deletion-contraction)
β”‚ β”œβ”€β”€ DominatingSetAnalyzer.java # Minimum dominating set
β”‚ β”œβ”€β”€ FeedbackVertexSetAnalyzer.java # Feedback vertex set
β”‚ β”œβ”€β”€ GraphColoringAnalyzer.java # Welsh-Powell vertex coloring
β”‚ β”œβ”€β”€ HamiltonianAnalyzer.java # Hamiltonian path/cycle
β”‚ β”œβ”€β”€ IndependentSetAnalyzer.java # Maximum independent set
β”‚ β”œβ”€β”€ MaxCutAnalyzer.java # Maximum cut problem
β”‚ β”œβ”€β”€ MetricDimensionAnalyzer.java # Metric dimension (resolving sets)
β”‚ β”œβ”€β”€ SteinerTreeAnalyzer.java # Steiner tree approximation
β”‚ β”œβ”€β”€ TreewidthAnalyzer.java # Treewidth estimation
β”‚ β”œβ”€β”€ VertexConnectivityAnalyzer.java # Vertex connectivity
β”‚ β”œβ”€β”€ VertexCoverAnalyzer.java # Minimum vertex cover
β”‚ β”‚
β”‚ │── # ─── Network Analysis ──────────────────────
β”‚ β”œβ”€β”€ GraphAnomalyDetector.java # Network anomaly detection
β”‚ β”œβ”€β”€ GraphNeighborhoodAnalyzer.java # k-hop neighborhood analysis
β”‚ β”œβ”€β”€ LinkPredictionAnalyzer.java # Edge prediction metrics
β”‚ β”œβ”€β”€ NetworkFlowAnalyzer.java # Max-flow/min-cut (Ford-Fulkerson)
β”‚ β”œβ”€β”€ GraphResilienceAnalyzer.java # Attack/failure resilience
β”‚ β”œβ”€β”€ GraphSparsificationAnalyzer.java # Graph sparsification algorithms
β”‚ β”œβ”€β”€ InfluenceSpreadSimulator.java # IC/LT influence models
β”‚ β”œβ”€β”€ RandomWalkAnalyzer.java # Random walks, hitting/cover times
β”‚ β”œβ”€β”€ SmallWorldAnalyzer.java # Small-world property testing (Οƒ, Ο‰)
β”‚ β”œβ”€β”€ TemporalGraph.java # Temporal graph evolution analysis
β”‚ β”‚
β”‚ │── # ─── Metrics & Comparison ──────────────────
β”‚ β”œβ”€β”€ AdjacencyMatrixHeatmap.java # Adjacency matrix visualization
β”‚ β”œβ”€β”€ GraphEntropyAnalyzer.java # 9 entropy measures
β”‚ β”œβ”€β”€ GraphSimilarityAnalyzer.java # Entropy-based graph comparison
β”‚ β”œβ”€β”€ GraphDiffAnalyzer.java # Structural diff between graphs
β”‚ β”œβ”€β”€ GraphDrawingQualityAnalyzer.java # Layout quality metrics
β”‚ β”œβ”€β”€ EdgePersistenceAnalyzer.java # Edge stability over time
β”‚ β”œβ”€β”€ GrowthRateAnalyzer.java # Network growth modeling
β”‚ β”œβ”€β”€ LaplacianBuilder.java # Laplacian matrix construction
β”‚ β”œβ”€β”€ SpectralAnalyzer.java # Eigenvalue spectral analysis
β”‚ β”œβ”€β”€ GraphSpectrumAnalyzer.java # Full spectrum analysis
β”‚ β”œβ”€β”€ TournamentAnalyzer.java # Tournament graph analysis
β”‚ β”‚
β”‚ │── # ─── Algorithms ────────────────────────────
β”‚ β”œβ”€β”€ KCoreDecomposition.java # K-core peeling
β”‚ β”œβ”€β”€ MinimumSpanningTree.java # Kruskal's MST
β”‚ β”œβ”€β”€ ShortestPathFinder.java # BFS + weighted Dijkstra
β”‚ β”œβ”€β”€ GraphRenderers.java # Custom graph rendering
β”‚ └── GraphDiameterAnalyzer.java # Diameter, radius, eccentricity
└── app/ # Data pipeline β€” Bluetooth β†’ meetings β†’ edge files
β”œβ”€β”€ Network.java, Util.java, findMeetings.java, addLocation.java, matchImei.java
```

100 test classes with **2,500+ tests** cover all analyzers and utilities.

## Requirements

- **Java JDK 8** or later
- **PostgreSQL** database with the expected schema (`meeting`, `event_3`, `device_1`, `deviceID` tables)
- **Apache Ant** (NetBeans project build system)

## Setup

### 1. Clone the repository

```bash
git clone https://github.com/sauravbhattacharya001/GraphVisual.git
cd GraphVisual
```

### 2. Configure database credentials

GraphVisual reads credentials from environment variables (no hardcoded secrets):

```bash
export DB_HOST=localhost # PostgreSQL host (default: localhost)
export DB_USER=your_user # Required
export DB_PASS=your_pass # Required
```

### 3. Build

```bash
cd Gvisual
ant build
```

Or compile manually:

```bash
cd Gvisual
mkdir -p build/classes
find src -name '*.java' > sources.txt
javac -cp "$(find lib -name '*.jar' | tr '\n' ':')" -d build/classes @sources.txt
```

### 4. Run the data pipeline

Execute these in order to populate the meeting database:

```bash
# Step 1: Match device nodes to IMEIs
java -cp "build/classes:lib/*" app.matchImei

# Step 2: Extract meetings from Bluetooth events
java -cp "build/classes:lib/*" app.findMeetings

# Step 3: Classify meeting locations
java -cp "build/classes:lib/*" app.addLocation
```

### 5. Launch the visualizer

```bash
java -cp "build/classes:lib/*" gvisual.Main
```

## GUI Components

| Component | Description |
|-----------|-------------|
| **Image Panel** | Main graph canvas powered by JUNG. Supports drag, zoom, and rotation. |
| **Timeline Panel** | Slider (days 1–92) with play/pause/stop and skip controls. Speed adjustable. |
| **Toolbar** | Left-side tools for interaction mode (transform vs. pick), image/edge-list export. |
| **Category Panel** | Toggle visibility of each relationship type. Expand to adjust duration/frequency thresholds. |
| **Notes Pane** | Free-text area for annotating the currently viewed graph timestamp. |
| **Statistics Panel** | Live network metrics β€” node/edge counts, density, degree stats, and hub identification. |
| **Centrality Panel** | Compute and rank nodes by degree, betweenness, and closeness centrality with sortable metric selector. |

## Relationship Classification

| Type | Color | Location | Duration Threshold | Meeting Count |
|------|-------|----------|--------------------|---------------|
| **Friends** | 🟒 Green | Public areas | > 10 min | β‰₯ 2/day |
| **Classmates** | πŸ”΅ Blue | Classrooms | > 30 min | β‰₯ 1/day |
| **Study Groups** | 🟠 Orange | Classrooms | > 20 min | ≀ 1/day |
| **Familiar Strangers** | βšͺ Gray | Public/paths | < 2 min | > 1/day |
| **Strangers** | πŸ”΄ Red | Public/paths | < 2 min | < 2/day |

All thresholds are adjustable at runtime via the Category Panel sliders.

## Tech Stack

| Technology | Purpose |
|------------|---------|
| **Java 8+** | Application language |
| **JUNG 2.0.1** | Graph data structures and visualization |
| **Swing** | Desktop GUI framework |
| **PostgreSQL** | Meeting and Bluetooth event storage |
| **Apache Ant** | Build system (NetBeans) |
| **Commons IO** | File I/O utilities |
| **Java3D** | 3D graph rendering support |
| **JUnit 4** | Unit testing framework |
| **GitHub Actions** | CI/CD (build + test on JDK 11/17) |
| **CodeQL** | Automated security scanning |

## Testing

Run tests with JUnit 4:

```bash
cd Gvisual
mkdir -p build/test/classes

# Download JUnit (if not present)
curl -sL -o lib/test/junit-4.13.2.jar \
https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar
curl -sL -o lib/test/hamcrest-core-1.3.jar \
https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar

# Compile and run
find test -name '*.java' > test-sources.txt
javac -cp "build/classes:$(find lib -name '*.jar' | tr '\n' ':')" \
-d build/test/classes @test-sources.txt

java -cp "build/classes:build/test/classes:$(find lib -name '*.jar' | tr '\n' ':')" \
org.junit.runner.JUnitCore app.UtilMethodsTest gvisual.EdgeTest
```

## Maven / GitHub Packages

GraphVisual is published to [GitHub Packages](https://github.com/sauravbhattacharya001/GraphVisual/packages) as a Maven artifact. You can use it as a library dependency or download the fat JAR directly.

### Add as a Maven dependency

1. Configure GitHub Packages in your `~/.m2/settings.xml`:

```xml


github
YOUR_GITHUB_USERNAME
YOUR_GITHUB_TOKEN

```

2. Add the repository and dependency to your `pom.xml`:

```xml


github
https://maven.pkg.github.com/sauravbhattacharya001/GraphVisual

com.github.sauravbhattacharya001
graphvisual
1.1.0

```

### Download the fat JAR

Each [release](https://github.com/sauravbhattacharya001/GraphVisual/releases) includes a standalone `graphvisual-*-all.jar` with all dependencies bundled:

```bash
java -jar graphvisual-1.1.0-all.jar
```

### Build with Maven locally

```bash
# Install vendored local JARs first
mvn initialize -P install-local-deps

# Build the project
mvn package -B
```

## Docker

### Build

```bash
docker build -t graphvisual .
```

### Run with X11 (Linux/macOS β€” GUI mode)

```bash
# Allow X11 forwarding
xhost +local:docker

docker run --rm \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
graphvisual
```

### Pull from GitHub Container Registry

```bash
docker pull ghcr.io/sauravbhattacharya001/graphvisual:latest
```

> **Note:** The Dockerfile builds a fat JAR with all dependencies, compiles source, runs tests during build, and packages a minimal JRE-based runtime image (~300MB). X11 libraries are included for optional GUI support via display forwarding.

## Quick Start β€” No Database Required

You can explore GraphVisual's 43 analyzers using the built-in **synthetic graph generators** without any database setup:

```java
import gvisual.GraphGenerator;

// Generate a 100-node scale-free network (BarabΓ‘si-Albert)
var graph = GraphGenerator.barabasiAlbert(100, 3);

// Or try other topologies:
// GraphGenerator.erdosRenyi(50, 0.15)
// GraphGenerator.wattsStrogatz(60, 6, 0.3)
// GraphGenerator.complete(20)
// GraphGenerator.star(30)
// GraphGenerator.grid(8, 8)
```

Then run any analyzer:

```java
import gvisual.*;

var centrality = new NodeCentralityAnalyzer();
var result = centrality.analyze(graph);
System.out.println(result);

var smallWorld = new SmallWorldAnalyzer();
System.out.println(smallWorld.analyze(graph));
```

## Analyzer Categories

| Category | Count | Highlights |
|----------|-------|------------|
| **Structural** | 12 | Cliques, cycles, planarity, isomorphism, articulation points |
| **Centrality & Ranking** | 3 | PageRank, degree/betweenness/closeness, degree distribution |
| **Community & Clustering** | 4 | Community detection, motifs, structural holes, signed graphs |
| **NP-hard Optimization** | 11 | Graph coloring, Hamiltonian paths, vertex cover, max cut |
| **Network Analysis** | 8 | Max-flow, influence spread, random walks, resilience testing |
| **Metrics & Comparison** | 8 | Spectral analysis, entropy, graph diff, edge persistence |

See **[ALGORITHMS.md](ALGORITHMS.md)** for the complete reference with time complexities and algorithm details.

## Research Context

This project was built to study **community evolution in student social networks** using Bluetooth proximity sensing. Key research questions:

- How do social communities form and evolve over a semester?
- What distinguishes friends from familiar strangers based on meeting patterns?
- How do physical spaces (classrooms vs. public areas) shape community structure?

The visualization tool enables researchers to explore these questions interactively by adjusting relationship parameters and observing how graph structures change over time.

## Contributing

Contributions are welcome! See **[CONTRIBUTING.md](CONTRIBUTING.md)** for full details on:

- Development setup and building
- Code style and architecture overview
- Testing guidelines
- Pull request process and commit conventions

Quick start: fork β†’ branch β†’ make changes with tests β†’ submit PR.