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
Concrete type reprensenting a point process defined on the edges of a `graph` characterizing the uniform distribution on the [spanning forests](https://en.wikipedia.org/wiki/Spanning_tree) of `graph` rooted at `roots`.
4
+
Concrete type reprensenting a point process defined on the edges of a **connected** `graph` characterizing the uniform distribution on the directed [spanning forests](https://en.wikipedia.org/wiki/Spanning_tree) of `graph` rooted at `roots`.
5
5
6
6
It can be viewed as a the product distribution of the uniform distribution on the set of neighbors of each vertex conditioned on forming no cycles.
7
7
@@ -12,7 +12,7 @@ The object has two fields:
12
12
13
13
**See also**
14
14
15
-
Section 4.2 of [GuJeLi19](@cite).
15
+
- Section 4.2 of [GuJeLi19](@cite).
16
16
17
17
# Example
18
18
@@ -64,10 +64,10 @@ function RootedSpanningForest(
throw(DomainError(graph, "graph should be connected"))
67
+
throw(DomainError(graph, "The graph must be connected"))
68
68
end
69
69
else
70
-
throw(DomainError(roots, "some roots not contained in vertices(graph)"))
70
+
throw(DomainError(roots, "roots must be contained in vertices(graph)"))
71
71
end
72
72
end
73
73
@@ -96,7 +96,10 @@ end
96
96
pp::RootedSpanningForest{T}
97
97
)::T where {T<:LG.SimpleDiGraph{Int64}}
98
98
99
-
Generate a rooted spanning forest of `pp.graph`, uniformly at random among all rooted spanning forests rooted at `pp.roots`, using Partial Rejection Sampling (PRS), see Section 4.2 of [GuJeLi19](@cite).
99
+
Generate a rooted spanning forest of `pp.`graph` with prescribed `pp.roots`, uniformly at random among all rooted spanning forests rooted at `pp.roots`, using Partial Rejection Sampling (PRS).
100
+
101
+
**See also**
102
+
- Section 4.2 of [GuJeLi19](@cite).
100
103
101
104
# Example
102
105
@@ -123,7 +126,10 @@ end
123
126
roots
124
127
)::LG.SimpleDiGraph{T} where {T}
125
128
126
-
Generate a rooted spanning forest from a **connected** `graph`, uniformly at random among all rooted spanning forests rooted at `roots`, using Wilson's algorithm.
129
+
Generate a rooted spanning forest from a **connected** `graph` with prescribed `roots`, uniformly at random among all rooted spanning forests rooted at `roots`, using Partial Rejection Sampling.
Generate a spanning forest of a **connected** `graph` with prescribed `roots`, uniformly at random among all rooted spanning forests rooted at `roots`, using [Wilson's algorithm](https://en.wikipedia.org/wiki/Loop-erased_random_walk#Uniform_spanning_tree).
0 commit comments