Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reaction-system

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reaction-system

A package for handling Reaction Systems, and RsFunctions with minimization capabilities

  • 0.1.4
  • PyPI
  • Socket score

Maintainers
1

Reaction System

A Python package for handling Reaction Systems and RsFunctions (partially mapped result functions) with minimization capabilities.

Overview

Your Package Name provides functionality for working with Reaction Systems and RsFunctions. It includes methods for minimization, mapping, support analysis, and more.

Features

  • Reaction System Handling: Create and analyze Reaction Systems.
  • RsFunction Operations: Perform minimization operations on RsFunctions to convert into ReactionSystems.

Installation

pip install your-package-name

Usage

Here's a quick example of using the Reaction System package:

from reaction_system import ReactionSystem, RsFunction

# Create a Reaction System
reaction_system = ReactionSystem(5)
reaction_system.push([1, 2, 3], [], [4, 5])

# Minimize the Reaction System over rank, or degree
rs_rank = reaction_system.minimize_rank()
rs_rank_exact = reaction_system.minimize_rank_exact()
rs_degree = reaction_system.minimize_rank()

# Get the reactions from a reaction system
for reaction in rs_rank.reactions():
  print(reaction, reaction.enabled([1, 2, 3, 4]))

# Create an RsFunction
rs_function = RsFunction(5)
rs_function.add([1, 2], [3, 4])
rs_function.add([1, 3], [2, 4])

# Get a minimum corresponding Reaction System
rs_rank = rs_function.minimize_rank()
rs_rank_exact = rs_function.minimize_rank_exact()
rs_degree = rs_function.minimize_rank()

print(rs_rank)

Contributing

Contributions are welcome! If you have suggestions, bug reports, or want to contribute code, please open an issue or submit a pull request.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc