network-validation

Validate MATSim networks for zero-length links, mode mismatches, and disconnected components.

1|Updated Oct 21, 2025
One-click install
npx skills add https://github.com/ro9er117911/matsim-example-project --skill network-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: network-validation
Source: https://github.com/ro9er117911/matsim-example-project/tree/main/.claude/skills/matsim-skill/3-network-validation
Command: npx skills add https://github.com/ro9er117911/matsim-example-project --skill network-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps validate MATSim networks, diagnose common network issues, and prepare networks for PT mapping.

Core Features & Use Cases

  • Basic Network Inspection: Verify files exist and count nodes/links.
  • Validate Mode Configuration: Ensure network modes align with routing config.
  • Automated Cleaning: Run network cleaning tools to remove disconnected components.
  • Common Issues Checks: Look for zero-length links, missing PT modes, and capacity anomalies.

Quick Start

  1. Validate that network.xml.gz exists and inspect node/link counts.
  2. Confirm that networkModes in config.xml align with network contents.
  3. Run PrepareNetworkForPTMapping to clean and augment the network for PT mapping.

Frequently Asked Questions about network-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate a MATSim network for correctness before running simulations?

Network validation checks your network.xml.gz file for common issues like zero-length links, missing PT modes, mode mismatches, and disconnected components. It verifies node and link counts, coordinate bounds, capacity values, and population link references against your config to ensure the network is ready for simulation.

What issues does MATSim network cleaning detect and fix?

Network cleaning identifies zero-length links, disconnected components, missing public transit modes, capacity anomalies, and mode mismatches between network configuration and routing config. The PrepareNetworkForPTMapping tool removes these issues and augments the network for PT readiness.

How do I prepare a MATSim network for PT mapping?

First verify network.xml.gz exists and inspect node and link counts. Confirm networkModes in config.xml align with network contents. Then run PrepareNetworkForPTMapping to clean disconnected components, validate modes, and augment the network for public transit mapping.

Can I use this to check if my network modes match my routing configuration?

Yes. The Skill validates that network modes align with routing config by comparing networkModes in config.xml against the actual modes present in your network.xml.gz file, detecting mismatches before simulation.

What file formats and inputs does network validation require?

Network validation requires network.xml.gz and config.xml. It inspects node and link data, coordinate bounds, capacity values, and population link references within these files to assess network consistency and PT readiness.

Why would a MATSim network fail PT mapping validation?

Networks fail PT validation due to zero-length links, disconnected components, missing PT modes, mode mismatches between config and network, capacity anomalies, or population link references that don't align with network structure.