35 Graphs Trees
35 Graphs Trees
35 Graphs Trees
Sid Chaudhuri
This is ok
⇒
These ⇒ symbols are
⇒
⇒
⇒
⇒
… which is true, so QED No!
Plea for the Day #1
http://www.plainenglish.co.uk/
Plea for the Day #2
V.J. Wedeen and L.L. Wald, Martinos Center for Biomedical Imaging at MGH
And so is this
A social graph
An older social graph
A fictional social graph
A transport graph
Another transport graph
A circuit graph (flip-flop)
A circuit graph (Intel 4004)
A circuit graph (Intel Haswell)
A probabilistic graphical model
P(C=F) P(C=T)
0.5 0.5
Sprinkler Rain
P(W, R, S, C) =
P(W | R, S) Wet grass R S P(W=F) P(W=T)
K5
K3,3
=
What is a graph?
A
● An undirected graph G = (V, E)
consists of D
C
– A non-empty set of vertices/nodes V B
– A set of edges E, each edge being a set of one or two vertices (if
one vertex, the edge is a self-loop)
A
● A directed graph G = (V, E)
consists of D
C
– A non-empty set of vertices/nodes V B
D
C
A A
C D C D
B B
Connected Not connected
Trees
● A forest is an undirected graph with no cycles
A
F G
C D
A B C D E
B
E G
C D
B
A B C D E
Identifying trees
● An undirected graph G on a finite set of vertices is a
tree iff any two of the following conditions hold
– |E| = |V| - 1
– G is connected
– G has no cycles
if ul
e au t 4 vertices: 16 trees
n y b
Ma roofs!
p