Graph Command Examples
This section provides examples and documentation for using fromager’s graph analysis commands to explore dependency graphs produced by builds.
All examples use the sample graph file e2e/build-parallel/graph.json which contains the dependency graph for building the imapautofiler package.
Overview of Graph Commands
The fromager graph command group provides several subcommands for analyzing dependency graphs:
subset: Extract a focused subgraph containing only dependencies and dependents of a specific packagewhy: Understand why a package appears in the dependency graphto-dot: Convert graph to DOT format for visualization with Graphvizexplain-duplicates: Analyze multiple versions of packages in the graphto-constraints: Convert graph to constraints file formatmigrate-graph: Convert old graph formats to the current format
These tools help you understand complex dependency relationships, debug unexpected dependencies, create focused subgraphs for analysis, and create visual representations of your build requirements.