yawning_titan.networks.network.NetworkLayout#

class yawning_titan.networks.network.NetworkLayout(value)[source]#

Bases: Enum

An enum class that maps to layout functions in networkx.drawing.layout.

See: https://networkx.org/documentation/stable/reference/drawing.html#module-networkx.drawing.layout

Methods

as_layout_func

Maps the NetworkLayout to a function in networkx.drawing.layout.

Attributes

CIRCULAR = 'circular'#
KAMADA_KAWAI = 'kamada_kawai'#
PLANAR = 'planar'#
SHELL = 'shell'#
SPECTRAL = 'spectral'#
SPIRAL = 'spiral'#
SPRING = 'spring'#
as_layout_func()[source]#

Maps the NetworkLayout to a function in networkx.drawing.layout.