Draw adjacency matrix for
B
/|\
A | D
/ \| \
G C E
/ \ /|\
J-_ F | H
¯`-I
A | B | C | D | E | F | G | H | I | J | |
---|---|---|---|---|---|---|---|---|---|---|
A | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
B | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
C | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 |
D | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
E | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
F | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
G | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
H | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
I | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
J | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 |