From Surf Wiki (app.surf) — the open knowledge base
Ordered graph
Graph with a total order over its nodes
Graph with a total order over its nodes
An ordered graph is a graph with a total order over its nodes.
In an ordered graph, the parents of a node are the nodes that are adjacent to it and precede it in the ordering. More precisely, n is a parent of m in the ordered graph \langle N,E, if (n,m) \in E and n . The width of a node is the number of its parents, and the width of an ordered graph is the maximal width of its nodes.
The induced graph of an ordered graph is obtained by adding some edges to an ordering graph, using the method outlined below. The induced width of an ordered graph is the width of its induced graph.
Given an ordered graph, its induced graph is another ordered graph obtained by joining some pairs of nodes that are both parents of another node. In particular, nodes are considered in turn according to the ordering, from last to first. For each node, if two of its parents are not joined by an edge, that edge is added. In other words, when considering node n, if both m and l are parents of it and are not joined by an edge, the edge (m,l) is added to the graph. Since the parents of a node are always connected with each other, the induced graph is always chordal.
As an example, the induced graph of an ordered graph is calculated. The ordering is represented by the position of its nodes in the figures: a is the last node and d is the first.
| The original graph. | Edge added considering the parents of a | Edge added considering the parents of b |
|---|
Node a is considered first. Its parents are b and c, as they are both joined to a and both precede a in the ordering. Since they are not joined by an edge, one is added.
Node b is considered second. While this node only has d as a parent in the original graph, it also has c as a parent in the partially built induced graph. Indeed, c is joined to b and also precede b in the ordering. As a result, an edge joining c and d is added.
Considering d does not produce any change, as this node has no parents.
Processing nodes in order matters, as the introduced edges may create new parents, which are then relevant to the introduction of new edges. The following example shows that a different ordering produces a different induced graph of the same original graph. The graph is the same as above but b and c are swapped in the order.
| Same graph, but the order of b and c is swapped | Graph after considering a |
|---|
As in the previous case, both b and c are parents of a. Therefore, an edge between them is added. According to the new order, the second node that is considered is c. This node has only one parent (b). Therefore, no new edge is added. The third considered node is b. Its only parent is d. Now, b and c are joined as before but due to the different ordering, c is not a parent of b. As a result, no new edge is introduced between c and d this time. Since d has no parent, the final induced graph is the one above. This induced graph differs from the one produced by the previous ordering.
References
- {{cite book
References
- Page 86 Dechter. (2003). Constraint Processing
- Page 87 Dechter. (2003). Constraint Processing
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about Ordered graph — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report