colour.utilities.is_networkx_installed

colour.utilities.is_networkx_installed(raise_exception=False)[source]

Returns if NetworkX is installed and available.

Parameters

raise_exception (bool) – Raise exception if NetworkX is unavailable.

Returns

Is NetworkX installed.

Return type

bool

Raises

ImportError – If NetworkX is not installed.