Graphs: It is nodes arranged in either ways of connected, disconnected, undirected, directed(digraph), cyclic, acyclic manner.
Tree: A structure of graph which must be connected and not cyclic.
Adjacency matrix: It is column-row wise representation of nodes and directions of edges interconnect them.
Draw matrix for the same.