Generate family hierarchy with indentation