Focus Flow

graphqomb.focus_flow module

Focus flow algorithm.

This module provides:

Functions

graphqomb.focus_flow.is_focused(flowlike, graph)[source]

Check if a flowlike object is focused.

Parameters:
Returns:

True if the flowlike object is focused, False otherwise

Return type:

bool

Raises:

TypeError – If the flowlike object is not a Flow or GFlow

graphqomb.focus_flow.focus_gflow(flowlike, graph)[source]

Focus a flowlike object.

Parameters:
Returns:

focused flowlike object

Return type:

dict[int, set[int]]

Raises:

TypeError – If the flowlike object is not a Flow or GFlow