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

Guides

  • Diagrams

Tech Notes

  • Introduction to Diagrammatic Computation

Symbols

  • ColumnDiagram
  • DiagramComposition
  • DiagramDraw
  • DiagramDual
  • DiagramFlip
  • DiagramGraphics
  • DiagramGrid
  • Diagram
  • DiagramNetwork
  • DiagramProduct
  • DiagramReverse
  • DiagramSum
  • IdentityDiagram
  • PermutationDiagram
  • PortDual
  • Port
  • PortProduct
  • RowDiagram
  • ToDiagram
Wolfram`DiagrammaticComputation`
ToDiagram
​
ToDiagram[obj]
convert an object to a
Diagram
.
​
Examples  
(6)
Basic Examples  
(6)
Convert
Graph
:
In[1]:=
ToDiagram


Out[1]=
​
Convert hypergraph:
In[1]:=
ToDiagram
[{{1},{1,2},{2,3},{1,2,3}}]
Out[1]=
​
Convert
Tree
:
In[1]:=
ToDiagram


Out[1]=
​
​
Convert
NetGraph
:
In[1]:=
ToDiagram
NetGraph
InputPorts
​
Input
:
real
Target
:
vector(size: 3)
OutputPort
Loss
:
real

Out[1]=
​
​
Convert lambda expression:
In[1]:=
ToDiagram
[λ.[λ.[1[2][2[1]]]]]
Out[1]=
​
Convert
SystemModel
:
In[1]:=
ToDiagram
[Import["ExampleData/ExampleModel.mo","MO"]]
Out[1]=
​
RelatedGuides
▪
Diagrams
""

© 2025 Wolfram. All rights reserved.

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