Removing old version of calculatePrincipalGraphsForGraph()