Compute graph toughness using Apache Spark