ICSE 2001 Logo   Rigi Logo
 
rcl_select_strong_component
Back to RCL Command Index

No arguments accepted.

Description:

This command is applied to selected nodes in the active window. For each selected node, all incoming and outgoing "composite" arcs (collections of arcs represented by a single line between two "Collapsed" nodes) are reviewed. If a composite arc has a number of contributor arcs that is greater than or equal to the high threshold (see rcl_set_high_thresholds), then the remote node is included in the set of selected nodes. Thus, the command is inherently recursive. The original set of selected nodes can only be augmented, never diminished.

This command is useful in determining a set of tightly coupled set of nodes. See also rcl_select_weak_connect and rcl_select_strong_connect.

Return Value:

The number of nodes selected (including the originally selected nodes) is returned.

Exceptions:

None.

Example:

# Select the node named "subsystem_1". Set the threshold so that
# nodes connected with composite arcs having 20 or more contributors
# are selected. Then, make the selection and report the number of
# nodes selected to stdout.

rcl_select_name subsystem_1
rcl_set_high_thresholds 20
puts [rcl_select_strong_component]

Back to RCL Command Index