Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

DiagrammaticComputation

Tutorials

  • Diagram Examples
  • Introduction to Diagrammatic Computation
  • Rewriting Diagrams

Guides

  • Converting To and From Diagrams
  • Drawing Diagrams Interactively
  • Diagram Grid Layout
  • Diagram Rewriting
  • Diagrams
  • Diagram Surgery
  • Feynman Diagrams
  • Ports

Symbols

  • AnnihilationRule
  • CapDiagram
  • ColumnDiagram
  • CommutationRule
  • CopyDiagram
  • CupDiagram
  • DiagramArrange
  • DiagramAssignPorts
  • DiagramCases
  • DiagramComposition
  • DiagramCopySplit
  • DiagramDecompose
  • DiagramDelete
  • DiagramDraw
  • DiagramDual
  • DiagramExpressionReplace
  • DiagramExtract
  • DiagramFlip
  • DiagramFunction
  • DiagramGraphics
  • DiagramGraphSimplify
  • DiagramGridHeight
  • DiagramGrid
  • DiagramGridTree
  • DiagramGridWidthHeight
  • DiagramGridWidth
  • DiagramHypergraph
  • DiagramHypergraphRule
  • DiagramInsert
  • DiagramMapAt
  • DiagramMap
  • DiagramMatchPorts
  • Diagram
  • DiagramNestReplace
  • DiagramNetwork
  • DiagramPattern
  • DiagramPermute
  • DiagramPosition
  • DiagramPositions
  • DiagramProduct
  • DiagramQ
  • DiagramReplaceList
  • DiagramReplace
  • DiagramReplacePart
  • DiagramReverse
  • DiagramRightComposition
  • DiagramRule
  • DiagramsFreePorts
  • DiagramsGraph
  • DiagramsNetGraph
  • DiagramSplit
  • DiagramsPortGraph
  • DiagramSubdiagrams
  • DiagramSum
  • DiagramTensor
  • DuplicateAnnihilationRule
  • DuplicateEraserRule
  • EmptyDiagram
  • EmptyDiagramQ
  • EmptyPortQ
  • EraserAnnihilationRule
  • EraserDiagram
  • EraserRule
  • FeynArtsTopologyGraphics
  • FeynmanDiagram
  • GridInputPorts
  • GridOutputPorts
  • IdentityDiagram
  • MergeDiagram
  • PermutationDiagram
  • PortDual
  • PortMinus
  • Port
  • PortNeutral
  • PortPower
  • PortProduct
  • PortQ
  • PortSum
  • PropagationRule
  • RemoveDiagramRule
  • RowDiagram
  • SimplifyDiagram
  • SingletonDiagram
  • SpiderDiagram
  • TagPort
  • TensorDiagram
  • ToDiagram
  • ToDiagramNetwork
  • TopologyGraphics
  • TopologyGraph
  • TopologyGraphs
  • UntagPort
  • WigglyArcFunction
  • ZeroDiagram
  • ZeroPortQ
Diagram Grid Layout
A diagram is grid-arrangeable when it can be drawn as a rectangular grid of cells in which composition runs vertically and product runs horizontally. This guide covers the tools that turn an arbitrary composite diagram into a grid: row and column constructors that build grids directly,
DiagramGrid
which renders the grid,
DiagramArrange
which inserts identities, permutations and spiders so the diagram can be gridded, and
DiagramDecompose
which recovers the expression tree of subdiagrams from a built diagram.
Grid layout
DiagramGrid
— render a diagram with its subdiagrams arranged in a 2D grid
RowDiagram
— arrange diagrams horizontally (product)
ColumnDiagram
— arrange diagrams vertically (composition)
Arrangement
DiagramArrange
— insert wires, identities, permutations and spiders to make a diagram grid-arrangeable
DiagramDecompose
— decompose a composite diagram into an expression tree of subdiagrams
Port matching
DiagramMatchPorts
— align the ports of adjacent subdiagrams in a grid layout
DiagramAssignPorts
— assign explicit ports to a diagram's inputs and outputs
Grid metrics
GridInputPorts
— input ports of a grid layout
GridOutputPorts
— output ports of a grid layout
DiagramGridWidth
— width of a diagram's grid layout
DiagramGridHeight
— height of a diagram's grid layout
DiagramGridWidthHeight
— width and height of a diagram's grid layout
DiagramGridTree
— tree of grid cells of a diagram's grid layout
RelatedGuides
▪
Diagrams
▪
DiagramDrawing
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com