Professional Documents
Culture Documents
Aula 02 - Conceitos Básicos e Representações
Aula 02 - Conceitos Básicos e Representações
e d c
v
Lista de Adjacências
a → b,c
b → a,d,e
c → a,d,e
d → c,b,f
e → b,c,f
f → d,e
Trivial Graph Format (.tgf)
1 Natal
2 João Pessoa
3 Recife
#
2 3 BR101B
1 2 BR101A
2 2 BR230A
https://en.wikipedia.org/wiki/Trivial_Graph_Format
Graph Modelling Language graph [
directed 0
node [
Também conhecido id A
como Graph Meta Nó label "Nó A" ]
Language. (.gml) A node [
AeC
id B
Formato hierárquico Nó label "Nó B" ]
C node [
Pode conter atributos id C
detalhados, incluindo os label "Nó C" ]
relacionados a um AeB edge [
source B
formato de target A
visualização. Nó label “A e B" ]
B
edge [
source C
target A
label “A e C" ]
https://en.wikipedia.org/wiki/Graph_Modelling_Language ]
Edge List Node List
w
e d v c
GRAU
Teorema (Handshaking Lemma). Para todo grafo G,
s s t u v w x y z
a b a 1 2 0 0 0 0 1 0
t
x I= b 1 0 1 0 0 1 0 0
u c 0 s 0 t 1u 1v 1w 0x 0y 0z
y
w d a 0 1 0 2 00 10 10 10 11 10
z e b 0 1 0 0 01 00 00 01 00 10
e d c
c 0 0 1 1 1 0 0 0
v
d 0 0 0 1 1 1 1 1
e 0 0 0 0 0 0 0 1
GRAU
Corolário. Em qualquer grafo, o número de vértices de grau ímpar é par.
t
t
s
a b s
a b
x
u x
y
y
w
z w
e d c z
e d c
v
v