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

CompartmentalModeling

Guides

  • Compartmental Modeling

Tech Notes

  • Vertical Transmission Models

Symbols

  • DynamicTransmissionModel
  • ForceOfInfection
  • Incidence
  • NextGenerationMatrix
  • CollectModel
  • CompartmentalModelGraph
  • CompetitiveInhibitorKinetics
  • DefinePropensityFunction
  • DeriveTransitions
  • DynamicTransmissionModel
  • EnzymeReaction
  • EpidemiologyModelData
  • EpidemiologyModel
  • ExpandModel
  • ForceOfInfection
  • HillKinetics
  • Incidence
  • KineticCompartmentalModel
  • KineticReactionNetworkModel
  • MichaelisMentenKinetics
  • NextGenerationMatrix
  • NoncompetitiveInhibitorKinetics
  • NullCompartment
  • ResolveCompartmentalModel
  • StochasticSolve
  • StoichiometryTable
  • StratifyModel
  • Transition
  • UncompetitiveInhibitorKinetics
  • VitalDemographicsModel
  • $C
  • $CompartmentalModelingVersion
  • $EpidemiologyColor
  • $EpidemiologyModelingVersion
  • $R
  • $SystemsBiologyModelingVersion
RobertNachbar`CompartmentalModeling`
CompartmentalModelGraph
​
CompartmentalModelGraph
[{
tr
1
,
tr
2
,…}]
gives a directed graph of the compartmental model with transitions
tr
i
as edges and compartments as vertices.
​
Details and Options

Examples  
(7)
Basic Examples  
(1)
The graph of a simple model:
In[1]:=
CompartmentalModelGraph

Transition
[A,
k
a,b
,B],
Transition
[B,
k
b,c
,C],
options

Out[1]=
The graph of a model with sources and sinks:
In[2]:=
CompartmentalModelGraph

Transition

NullCompartment
,Λ,,
Transition
[,βλ[t],ℐ],
Transition
[ℐ,γ,ℛ],
Transition
,μ,
NullCompartment
,
Transition
ℐ,μ,
NullCompartment
,
Transition
ℛ,μ,
NullCompartment
,
options

Out[2]=
Generalizations & Extensions  
(1)

Options  
(3)

Possible Issues  
(1)

Neat Examples  
(1)

SeeAlso
Transition
 
▪
NullCompartment
 
▪
Graph
 
▪
$C
 
▪
$R
 
▪
$EpidemiologyColor
RelatedGuides
▪
Compartmental Modeling
""

© 2025 Wolfram. All rights reserved.

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