Bipartite extension graphs and the Duflo--Serganova functor