easyiec.problems.GraphLayout#

class easyiec.problems.GraphLayout(graph=None)[source]#

Bases: Problem

Aesthetic drawing of a network (Zachary’s karate club, Zachary 1977, via networkx).

The genome blends four base layouts (spring, Kamada–Kawai, spectral, circular), separates the two factions, rotates the drawing and sets node size, edge transparency and colours. objectives() reports classical graph-drawing aesthetics — edge crossings, edge-length uniformity, node overlap (cf. Purchase, 1997).

objectives(x)[source]#

Key performance indicators (engineering problems); empty by default.

utility(x, target=None)[source]#

Default hidden utility in [0, 1] (ground truth of benchmarks).

With a target genome it is a Gaussian similarity of standardized phenotype features; subclasses with explicit objectives override it.

Examples using easyiec.problems.GraphLayout#

Design: palettes, chart styles, faces and network drawings

Design: palettes, chart styles, faces and network drawings