A tree diagram is a connected undirected graph without simple circuits. Trees are used to represent hierarchies and family relationships. A graph is a tree if and only if there is a unique simple path between any two vertices. This is because if there were multiple paths, it would form a circuit, which trees do not have by definition.