Block graphs are
chordal,
distance-hereditary, and
geodetic. The distance-hereditary graphs are the graphs in which every two induced paths between the same two vertices have the same length, a weakening of the characterization of block graphs as having at most one induced path between every two vertices. Because both the chordal graphs and the distance-hereditary graphs are subclasses of the
perfect graphs, block graphs are perfect. Every
tree,
cluster graph, or
windmill graph is a block graph. Every block graph has
boxicity at most two. Block graphs are examples of pseudo-
median graphs: for every three vertices, either there exists a unique vertex that belongs to shortest paths between all three vertices, or there exists a unique triangle whose edges lie on these three shortest paths. The block graphs in which every block has size at most three are a special type of
cactus graph, a triangular cactus. The largest triangular cactus in any graph may be found in
polynomial time using an algorithm for the
matroid parity problem. Since triangular cactus graphs are
planar graphs, the largest triangular cactus can be used as an approximation to the largest planar subgraph, an important subproblem in
planarization. As an
approximation algorithm, this method has
approximation ratio 4/9, the best known for the maximum planar subgraph problem. ==Block graphs of undirected graphs==