GraphPropertyDistribution
✖
GraphPropertyDistribution
represents the distribution of the property expr where the random variable x follows the graph distribution gdist.
represents the distribution where x1, x2, … are independent and follow the graph distributions gdist1, gdist2, ….
Details and Options

- GraphPropertyDistribution is a transformation from the space of graphs to some property that is often of much lower dimension.
- GraphPropertyDistribution is typically used to study properties of distributions of graphs such as edge count, vertex count, length of shortest path, number of connected components or any other property that can be computed for graphs.
- xdist can be entered as x
dist
dist or x \[Distributed]dist.
- GraphPropertyDistribution will simplify to known special distributions whenever possible.
- GraphPropertyDistribution can be used with such functions as NProbability, NExpectation, and RandomVariate.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Obtain property distributions of graph models:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-g100dd

Simulate the distribution of a graph property:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-1yhivg

https://wolfram.com/xid/0pnjdl1clt6iuo3u-mypox7


https://wolfram.com/xid/0pnjdl1clt6iuo3u-g5i30z

Plot probability density functions:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-2l7uvb

Scope (14)Survey of the scope of standard use cases
Basic Uses (5)
Obtain symbolic property distributions of graph models:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-9qrowp

Compute the probability of an event for a graph property distribution:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-bjd8us

https://wolfram.com/xid/0pnjdl1clt6iuo3u-hdqpjy

Compute the expectation of an expression for a graph property distribution:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-fnqwmy

https://wolfram.com/xid/0pnjdl1clt6iuo3u-bc6qmi

Simulate a property distribution:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-pnqfmj

https://wolfram.com/xid/0pnjdl1clt6iuo3u-u998n

Generate a probability histogram:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-jm4m9

https://wolfram.com/xid/0pnjdl1clt6iuo3u-bjfhkr

Create an empirical distribution of graph property data:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-g7khph

https://wolfram.com/xid/0pnjdl1clt6iuo3u-8681v

Visualize distribution functions:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-dcg2mw

Compute stochastic properties:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-fhf4rs


https://wolfram.com/xid/0pnjdl1clt6iuo3u-lgm1pw

Compute moments and quantiles:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-tv9xr


https://wolfram.com/xid/0pnjdl1clt6iuo3u-bbzf3

Distribution Properties (4)
GraphPropertyDistribution works with basic graph properties, such as EdgeCount:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-5hhqug


https://wolfram.com/xid/0pnjdl1clt6iuo3u-33lold


https://wolfram.com/xid/0pnjdl1clt6iuo3u-mq9xw1


https://wolfram.com/xid/0pnjdl1clt6iuo3u-btgrtw


https://wolfram.com/xid/0pnjdl1clt6iuo3u-gy5bh1


https://wolfram.com/xid/0pnjdl1clt6iuo3u-uv347j

Predicates, such as ConnectedGraphQ:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-kmt2w9

https://wolfram.com/xid/0pnjdl1clt6iuo3u-j5q2cw


https://wolfram.com/xid/0pnjdl1clt6iuo3u-pia21w


https://wolfram.com/xid/0pnjdl1clt6iuo3u-sojwf2

https://wolfram.com/xid/0pnjdl1clt6iuo3u-y0oiv3


https://wolfram.com/xid/0pnjdl1clt6iuo3u-jhincz

https://wolfram.com/xid/0pnjdl1clt6iuo3u-fhi2bv

Graph measures and metrics, such as GraphDiameter:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-peyfe7

https://wolfram.com/xid/0pnjdl1clt6iuo3u-yc3d61


https://wolfram.com/xid/0pnjdl1clt6iuo3u-4yl4xf

https://wolfram.com/xid/0pnjdl1clt6iuo3u-lggt2b


https://wolfram.com/xid/0pnjdl1clt6iuo3u-3iki28

https://wolfram.com/xid/0pnjdl1clt6iuo3u-y9a6wv

GraphPropertyDistribution works with any expression, such as maximum eigenvector centrality:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-0k9ova

https://wolfram.com/xid/0pnjdl1clt6iuo3u-noifni


https://wolfram.com/xid/0pnjdl1clt6iuo3u-gsmrck

https://wolfram.com/xid/0pnjdl1clt6iuo3u-tyf03c

Graph Distributions (3)
GraphPropertyDistribution works with all graph distributions, such as BarabasiAlbertGraphDistribution:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-cqblso


https://wolfram.com/xid/0pnjdl1clt6iuo3u-f74dj8


https://wolfram.com/xid/0pnjdl1clt6iuo3u-myuha


https://wolfram.com/xid/0pnjdl1clt6iuo3u-lg1vdh


https://wolfram.com/xid/0pnjdl1clt6iuo3u-idxb3t


https://wolfram.com/xid/0pnjdl1clt6iuo3u-jdlv0

WattsStrogatzGraphDistribution:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-oi40a


https://wolfram.com/xid/0pnjdl1clt6iuo3u-gwu7jh

Combine independent distributions:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-v0ur0

https://wolfram.com/xid/0pnjdl1clt6iuo3u-e6fki1

Automatic Simplifications (2)
GraphPropertyDistribution will simplify to known distributions whenever possible:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-c1lpps

Special transformations of graph property distributions:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-cqpje4

Options (1)Common values & functionality for each option
Assumptions (1)
Compute the edge count of the Price distribution:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-flmxd5

Use Assumptions to specify the condition :

https://wolfram.com/xid/0pnjdl1clt6iuo3u-yvxi9

Applications (5)Sample problems that can be solved with this function
After 20 children have spent their first week in kindergarten, the probability that two children have made friends is 0.2. Find the probability that the social network is connected:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-x25twn

https://wolfram.com/xid/0pnjdl1clt6iuo3u-5xmvj4


https://wolfram.com/xid/0pnjdl1clt6iuo3u-kqht0c
Directly compute the probability:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-2cevl5

This represents a social network of 100 persons in a small village where the average number of relations per person is 20. Find the expected number of relations of the least-connected person:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-xti07a

https://wolfram.com/xid/0pnjdl1clt6iuo3u-jhjbsf

The number of relations is given by the VertexDegree:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-gzoolm

A frog in a lily pond is able to jump 1.5 feet to get from one of the 25 lily pads to another. Model the frog's jumping network from the lily leaf density and SpatialGraphDistribution:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-ekfp0

https://wolfram.com/xid/0pnjdl1clt6iuo3u-e2crlz

https://wolfram.com/xid/0pnjdl1clt6iuo3u-kh8x34

Find the largest collection of lily pads the frog can jump between:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-dhcq16

Use simulation to find the sizes of the largest collections of lily pads for similar ponds:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-fhimm1

https://wolfram.com/xid/0pnjdl1clt6iuo3u-h6cf47

Find the number of times the frog would have to swim to visit all lily pads:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-qtlf91

Simulate to get results for similar lily ponds:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-b7d2ny

https://wolfram.com/xid/0pnjdl1clt6iuo3u-nl42v

In a medical study of an outbreak of influenza in a group of seven subjects, each subject has reported his or her number of potentially contagious interactions within the group. Model the interactions as a DegreeGraphDistribution:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-j01ul3

https://wolfram.com/xid/0pnjdl1clt6iuo3u-la21hk

Simulate to see whether the first two subjects have interacted:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-fpr17c

https://wolfram.com/xid/0pnjdl1clt6iuo3u-cfqd7t

Find the probability that the first two subjects have interacted:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-q3oky0

In a piece of brain cortex with 100 neurons, the neurons are connected by synapses if they are at a distance less than 0.2:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-gkki97

https://wolfram.com/xid/0pnjdl1clt6iuo3u-uu3fd3

Probability that the network is connected:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-iyjb5a

Properties & Relations (4)Properties of the function, and connections to other functions
GraphPropertyDistribution uses local names for the variables in the input:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-fd9zu8

Use NProbability to compute the probability of an event:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-bom7zk

https://wolfram.com/xid/0pnjdl1clt6iuo3u-01868

Use NExpectation to compute the expectation of an expression:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-b9buo0

https://wolfram.com/xid/0pnjdl1clt6iuo3u-f3obtw

Use RandomVariate to simulate a property distribution:

https://wolfram.com/xid/0pnjdl1clt6iuo3u-dannj0

https://wolfram.com/xid/0pnjdl1clt6iuo3u-jpku6b

Wolfram Research (2012), GraphPropertyDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/GraphPropertyDistribution.html.
Text
Wolfram Research (2012), GraphPropertyDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/GraphPropertyDistribution.html.
Wolfram Research (2012), GraphPropertyDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/GraphPropertyDistribution.html.
CMS
Wolfram Language. 2012. "GraphPropertyDistribution." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GraphPropertyDistribution.html.
Wolfram Language. 2012. "GraphPropertyDistribution." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GraphPropertyDistribution.html.
APA
Wolfram Language. (2012). GraphPropertyDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GraphPropertyDistribution.html
Wolfram Language. (2012). GraphPropertyDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GraphPropertyDistribution.html
BibTeX
@misc{reference.wolfram_2025_graphpropertydistribution, author="Wolfram Research", title="{GraphPropertyDistribution}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/GraphPropertyDistribution.html}", note=[Accessed: 19-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_graphpropertydistribution, organization={Wolfram Research}, title={GraphPropertyDistribution}, year={2012}, url={https://reference.wolfram.com/language/ref/GraphPropertyDistribution.html}, note=[Accessed: 19-June-2025
]}