2. Digraph Flashcards

(60 cards)

1
Q

What is a digraph (directed graph) D mathematically?

A

D = (V, E) where V is a finite non-empty set of vertices, and E is a set of ordered pairs of distinct vertices called arcs/directed edges. Arc (u,v) or ⃗uv goes FROM u TO v.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the order p(D) and size q(D) of a digraph?

A

Order: |V(D)| (number of vertices). Size: |E(D)| (number of arcs).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define out-neighbourhood N⁺(v) and in-neighbourhood N⁻(v).

A

N⁺(v) = {u ∈ V(D) | ⃗vu ∈ E(D)} (vertices you can go TO from v). N⁻(v) = {u ∈ V(D) | ⃗uv ∈ E(D)} (vertices that can come FROM to v).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Digraphs D₁ and D₂ are isomorphic (D₁ ≅ D₂) if there exists…

A

…a one-to-one, onto function φ: V(D₁) → V(D₂) such that (u,v) ∈ E(D₁) iff (φ(u), φ(v)) ∈ E(D₂).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

State the First Theorem for Digraphs.

A

For any digraph D with order p and size q: ∑ od(v) = ∑ id(v) = q. Every arc contributes 1 to an outdegree and 1 to an indegree.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is outdegree od(v), indegree id(v), and degree deg(v)?

A

od(v) = |N⁺(v)|. id(v) = |N⁻(v)|. deg(v) = od(v) + id(v).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the underlying graph of a digraph D?

A

The undirected graph obtained by replacing all arcs uv or vu with the undirected edge uv.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True or False: In a digraph, it’s possible for ∑ deg(v) to be odd.

A

True. While ∑ od(v) = ∑ id(v) = q, ∑ deg(v) = ∑(od(v)+id(v)) = 2q, which is always even.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

If uv is an arc in D, vertex u is ______ to v, and v is ______ from u.

A

u is adjacent to v; v is adjacent from u.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Arc uv is said to be ______ from u and ______ to v.

A

Incident from u; incident to v.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What must an isomorphism preserve in digraphs that’s different from undirected graphs?

A

Direction! Arc (u,v) must map to arc (φ(u), φ(v)) - same direction preserved.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an induced subdigraph ⟨S⟩ for S ⊆ V(D)?

A

The subdigraph with vertex set S and ALL arcs from D that have BOTH endpoints in S.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a spanning subdigraph?

A

A subdigraph H of D with V(H) = V(D) (uses all vertices, only some arcs).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Define a directed walk.

A

A finite alternating sequence v₁, ⃗e₁, v₂, ⃗e₂, …, vₙ₋₁, ⃗eₙ₋₁, vₙ where each ⃗eᵢ = (vᵢ, vᵢ₊₁) ∈ E(D). Must follow arc directions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a directed path?

A

A directed walk with no repeated vertices (and thus no repeated arcs).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a directed cycle?

A

A directed walk that starts and ends at the same vertex, with no other vertex repeated. Length ≥ 2 in digraphs!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Key difference from undirected graphs: In digraphs, cycles of length __ are possible.

A

2! (v→u→v) because arcs have direction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a semiwalk?

A

A sequence where for each step, you can travel EITHER with the arc direction (forward) OR against it (backward)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

If in a semiwalk, ⃗eᵢ = (vᵢ, vᵢ₊₁), it’s a ______ arc. If eᵢ = (vᵢ₊₁, vᵢ), it’s a ______ arc.

A

Forward arc; backward arc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Every directed walk is a semiwalk, but not every semiwalk is a directed walk. Why?

A

In a directed walk you can ONLY use forward arcs (follow direction). In a semiwalk you can use backward arcs too.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Define directed distance d_D(u,v).

A

The length (number of arcs) of the SHORTEST directed path FROM u TO v. If no such path exists, d_D(u,v) = ∞.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In digraphs, d(u,v) and d(v,u) are ______.

A

Not necessarily equal! Direction matters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

A digraph is weakly connected if…

A

…its underlying undirected graph is connected (can reach any vertex via semiwalks).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

A digraph is strongly connected if…

A

…for EVERY pair u,v, there exists a directed path FROM u TO v AND FROM v TO u.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
What is a symmetric digraph? Notation?
Whenever arc uv exists, arc ⃗vu also exists. Denoted D = G* (symmetric closure of undirected graph G).
19
Which is stronger: weak or strong connectivity?
Strong connectivity is stronger. All strongly connected digraphs are weakly connected, but not vice versa.
20
A digraph is r-regular if...
...od(v) = id(v) = r for ALL vertices v and some integer r.
21
What is an asymmetric digraph?
Whenever arc uv exists, arc vu does NOT exist. No pair has arcs in both directions.
22
What is a tournament?
An asymmetric digraph where for EVERY pair of vertices u≠v, EXACTLY ONE of ⃗uv or ⃗vu exists.
23
Key fact: While Kₙ is unique, a tournament of order n ______.
Is NOT unique. Many different tournaments exist for the same n.
24
What is a directed tree?
An asymmetric digraph whose underlying graph is a tree (connected, acyclic).
24
Characterization Theorem: A directed tree T is a rooted tree iff...
...T contains a vertex r with id(r)=0 (indegree 0), and id(v)=1 for all other vertices v.
25
What is a directed rooted tree?
A directed tree with a vertex r (root) such that there exists a directed path FROM r TO every other vertex.
26
What is a mixed graph?
Contains BOTH undirected edges AND directed arcs.
26
In a directed rooted tree, leaves are vertices with ______.
Outdegree 0 (no children).
27
What is the adjacency matrix A(D) for a digraph of order p?
A p×p binary matrix where aᵢⱼ = 1 iff arc ⃗vᵢvⱼ ∈ E(D) (arc FROM i TO j).
28
Key difference from undirected graphs: A(D) for digraphs is ______.
NOT necessarily symmetric.
29
For adjacency matrix A(D), sum of row i = ______, sum of column j = ______.
Row i sum = od(vᵢ) (outdegree of vᵢ). Column j sum = id(vⱼ) (indegree of vⱼ).
30
Given digraph D₁ with arcs: ⃗v₁v₂, ⃗v₂v₃, ⃗v₂v₄, ⃗v₄v₂, ⃗v₄v₁. Find od(v₂), id(v₂), deg(v₂).
od(v₂)=2 (to v₃ and v₄). id(v₂)=2 (from v₁ and v₄). deg(v₂)=4.
31
In the same D₁, is there a directed path from v₃ to v₁?
No. v₃ has outdegree 0, so you cannot leave v₃. Therefore d(v₃,v₁)=∞.
31
In D₁, what is d(v₄,v₃)?
2. Path: v₄→v₁→v₂→v₃ (v₄→v₁→v₂→v₃).
32
Is D₁ weakly connected? Strongly connected?
Weakly: YES (underlying graph connected). Strongly: NO (e.g., no path from v₃ to v₄).
33
T/F: In a digraph, if od(v)=0, then v is called a sink.
True. A vertex with outdegree 0 is a sink (nothing flows out).
33
T/F: In a digraph, if id(v)=0, then v is called a source.
True. A vertex with indegree 0 is a source (nothing flows in).
34
T/F: Every tournament is asymmetric.
True. By definition, tournaments are asymmetric.
35
T/F: Every asymmetric digraph is a tournament.
False. A tournament requires EXACTLY one arc between every pair. An asymmetric digraph might have NO arc between some pairs.
35
T/F: The adjacency matrix of a symmetric digraph is symmetric.
True. If uv and vu both exist, then aᵤᵥ = aᵥᵤ = 1.
36
In a street network with both one-way and two-way streets, what type of graph?
A mixed graph (contains both directed arcs and undirected edges).
36
In a round-robin tournament graph (wins only, no ties), what type of digraph is this?
A tournament. Asymmetric, exactly one directed arc between each pair (from winner to loser).
37
In a food web (who eats whom), if we want to know if species A indirectly affects species C through the chain, what should we check?
If there exists a directed path from A to C in the food web digraph.
38
For a rooted directory tree structure on a computer, what type of digraph best models it?
A directed rooted tree. Root is the main directory, arcs point from parent to child directories/files.
39
In undirected graphs, distance d(u,v)=d(v,u). Is this true for digraphs?
Generally NO. Directed distance is directional: d_D(u,v) ≠ d_D(v,u) in general.
39
What can digraphs have that simple undirected graphs cannot?
1) 2-cycles (v→u→v) 2) Asymmetric adjacency (u adjacent to v but v not adjacent to u) 3) Different indegree/outdegree for same vertex.
40
For connectivity: In undirected graphs, we just have "connected." How does this split for digraphs?
Splits into weak connectivity (ignore directions) and strong connectivity (respect directions).
41
The Handshaking Lemma for graphs: ∑ deg(v)=2q. What's the digraph equivalent?
∑ od(v) = ∑ id(v) = q.
42
If D is strongly connected, is its converse also strongly connected?
Yes! Reversing all arcs preserves strong connectivity.
42
What is the converse or reverse of a digraph D?
The digraph obtained by reversing the direction of every arc in D.
43
What is the maximum number of arcs in a tournament of order n?
n(n-1)/2. Exactly one arc per unordered pair of vertices.
43
Can a digraph be both symmetric and asymmetric?
Only if it has no arcs at all (empty digraph). Otherwise, symmetric requires both directions, asymmetric forbids both directions - contradictory.
44
What is the maximum number of arcs in a simple digraph of order n?
n(n-1). Each ordered pair of distinct vertices can have at most one arc.