Expand on reverse topological power ordering
This commit is contained in:
parent
472f75d9a5
commit
dc499bc440
1 changed files with 4 additions and 1 deletions
|
@ -257,7 +257,10 @@ First we define:
|
||||||
2. x's origin_server_ts is less than y's, or if
|
2. x's origin_server_ts is less than y's, or if
|
||||||
3. x's event_id is lexicographically less than y's
|
3. x's event_id is lexicographically less than y's
|
||||||
|
|
||||||
This is also known as a lexicographical topological sort.
|
This is also known as a lexicographical topological sort (i.e. this is the
|
||||||
|
unique topological ordering such that for an entry x all entries after it
|
||||||
|
must either have x in their auth chain or be greater than x as defined
|
||||||
|
above). This can be implemented using Kahn's algorithm.
|
||||||
|
|
||||||
* The **"mainline ordering"** based on a power level event P of a set of
|
* The **"mainline ordering"** based on a power level event P of a set of
|
||||||
events is calculated as follows:
|
events is calculated as follows:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue