b = isPerfect G
The algorithm uses the Strong Perfect Graph Theorem, which says that G is perfect if and only if neither G nor its complement contains an odd hole. hasOddHole is used to determine whether these conditions hold.
|
|
|
|
|
The object isPerfect is a method function.