Highlight the connected shapes that are associated with selected shape

As shown in the image if i select any one of the shape the ones which are connected to the selected ones should be highlighted. How can we achieve the same? What are the steps i need to follow to implement the same in my charts.