



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




A B C D E F
A B C D E F A B C D E F 0 1 0 1 0 1 1 0 0 0 1 0 0 0 0 1 0 0 1 0 1 0 1 1 0 1 0 1 0 0 1 0 0 1 0 0
adjacency matrix for G
adjacency list for G
A B C D E F
A B C D E F A B C D E F 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0
adjacency matrix for G
adjacency list for G
a sink G
a source
Note: This theorem need not hold in an infinite DAG. For example, this DAG has neither a source nor a sink.
We will see that the constraints are consistent if any only if the digraph has no cycles, i.e., is a DAG.
A topological sort of a digraph G = (V,E) is labeling of the vertices by 1, 2, ..., |V| (or by elements of some other ordered set) such that
( u , v ) is a edge ⇒ label( u ) < label( v ).
We will see that a digraph has a topological sort if and only if it is a DAG.
For a tasks / constraints graph, a topological sort provides an order in which the tasks can be performed serially, and conversely any valid order for performing the tasks serially gives a topological sort.
... (^) -3 -2 -1 0 1 2 3 ...
Given a strongly connected digraph G, we may form the component digraph GSCC^ as follows:
i) The vertices of GSCC^ are the strongly connect components of G. ii) There is an edge from v to w in G SCC^ if there is an edge from some vertex of component v to some vertex of component w in G.
Theorem: The component graph of a digraph is a DAG.
Here is the component digraph for the digraph on the preceding page.