You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ``fromager graph subset`` command extracts a focused subgraph containing only the dependencies and dependents of a specific package. This is useful for understanding the impact scope of a particular package, debugging specific dependency issues, or creating smaller, more manageable graphs for analysis.
5
+
6
+
Basic Usage
7
+
-----------
8
+
9
+
To extract a subset graph for a specific package:
10
+
11
+
.. code-block:: bash
12
+
13
+
fromager graph subset <graph-file><package-name>
14
+
15
+
Example
16
+
-------
17
+
18
+
Using the example graph file from the e2e test, let's extract a subset for the ``keyring`` package:
This is particularly useful when dealing with packages that have multiple versions in the graph, allowing you to focus on the relationships of a specific version.
50
+
51
+
File Output
52
+
-----------
53
+
54
+
Save the subset graph to a file instead of printing to stdout:
Copy file name to clipboardExpand all lines: docs/how-tos/graph-commands/index.rst
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,17 +9,18 @@ All examples use the sample graph file ``e2e/build-parallel/graph.json`` which c
9
9
:maxdepth:1
10
10
:glob:
11
11
12
-
[uvw]*
12
+
[euvw]*
13
13
14
14
Overview of Graph Commands
15
15
--------------------------
16
16
17
17
The ``fromager graph`` command group provides several subcommands for analyzing dependency graphs:
18
18
19
+
- ``subset``: Extract a focused subgraph containing only dependencies and dependents of a specific package
19
20
- ``why``: Understand why a package appears in the dependency graph
20
21
- ``to-dot``: Convert graph to DOT format for visualization with Graphviz
21
22
- ``explain-duplicates``: Analyze multiple versions of packages in the graph
22
23
- ``to-constraints``: Convert graph to constraints file format
23
24
- ``migrate-graph``: Convert old graph formats to the current format
24
25
25
-
These tools help you understand complex dependency relationships, debug unexpected dependencies, and create visual representations of your build requirements.
26
+
These tools help you understand complex dependency relationships, debug unexpected dependencies, create focused subgraphs for analysis, and create visual representations of your build requirements.
0 commit comments