function to print security group flows