Skip to main content

Run Tests PyPI Documentation Status LinkedIn

Fracnetics

Fracnetics is a high-performance C++ library with Python bindings for Genetic Network Programming (GNP) — an evolutionary approach that evolves directed graph structures for decision-making and control tasks.

Bridging evolution, networks, and fractals into one framework.


🔬 Overview

Fracnetics extends Genetic Network Programming (GNP) with variable-size networks and fractal geometry, designed to model adaptive, recursive, and self-similar network structures inspired by biological evolution and natural growth patterns.

It is designed for researchers and developers exploring:

  • Evolutionary network design
  • Obtain fully interpretable networks
  • Training agents in dynamic environments
  • Directed multigraph network architecture
  • variable-size networks based on Fabian Köhnke and Christian Borgelt, 2025
  • Complex systems with self-similar topology

🚀 Installation

pip install fracnetics

📓 Colab Tutorials

Small Tutorials Using Fracnetics

This notebooks demonstrate how to use the Fracnetics library to solve the CartPole environment problem from Gymnasium (a fork of OpenAI Gym) and the simple Irisdata classification.

CartPole Tutorial
Open in Colab

Iris Tutorial
Open in Colab


🦾 Features

  • Population Management

    • Create and manage a full population of Network individuals.
    • Graph-Based Evolution: Networks evolve as directed graphs with judgment nodes (conditional decisions) and processing nodes (actions), enabling node reuse and cyclic execution paths
  • Fitness Evaluation

    • Built-in support for OpenAI Gymnasium environments
    • Traverse a network path via callTraversePath and calculate any own fitness/ target function
  • Selection & Elitism: Tournament selection with configurable size.

  • Mutation Operators

    • Edge mutation (altering connections between nodes).
    • Boundary mutations (multiple variants):
      • Uniform
      • Normally distributed
      • Network-size dependent sigma scaling
      • Edge-count dependent sigma scaling
      • Fractal-based mutation
  • Crossover: Node exchange between individuals.

  • Innovative Opreators

    • Add/Delete Nodes – dynamic structural changes in networks.
    • Fractal Geometry Integration – hierarchical boundary generation via production rules (L-systems-style subdivision).

Metadata

Release files for fracnetics 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fracnetics 3.0.0
File Size Uploaded
fracnetics-3.0.0.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for fracnetics 3.0.0
File Interpreter ABI Platform
fracnetics-3.0.0-cp311-cp311-macosx_26_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 26.0+ x86-64 Details

Total release size: 1.8 MB

Release files / fracnetics-3.0.0.tar.gz

Download URL fracnetics-3.0.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
1ca667ae02b348c28179fb1ec62d2c576f455957d8aef449b250971b143176c9
BLAKE2b-256 checksum
How to use checksums
876aaf09ee369cd6c117ca8f7b22d5df8f609885e1c69ad1fe1e3d95e2f987ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.2

Release files / fracnetics-3.0.0-cp311-cp311-macosx_26_0_x86_64.whl

Download URL fracnetics-3.0.0-cp311-cp311-macosx_26_0_x86_64.whl
Size 275.3 kB
Tags CPython 3.11 macOS 26.0+ x86-64
SHA-256 checksum
How to use checksums
d299903593f6d9ba11cd105cfa9dc43b6f7c2419e286269a623092d1fb35b472
BLAKE2b-256 checksum
How to use checksums
4f5f5cac5197b11d3c6cf051ea66730cb8a61b03026181f3610d6ce5611a53c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.0.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.11

2 release files

0.2.11

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

2 release files

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page