Skip to main content
CenXiv.org
This website is in trial operation, support us!
We gratefully acknowledge support from all contributors.
Contribute
Donate
cenxiv logo > cs > arXiv:2506.12238

Help | Advanced Search

Computer Science > Databases

arXiv:2506.12238 (cs)
[Submitted on 27 Mar 2025 ]

Title: CPN-Py: A Python-Based Tool for Modeling and Analyzing Colored Petri Nets

Title: CPN-Py:基于Python的有色Petri网建模与分析工具

Authors:Alessandro Berti, Wil M.P. van der Aalst
Abstract: Colored Petri Nets (CPNs) are an established formalism for modeling processes where tokens carry data. Although tools like CPN Tools and CPN IDE excel at CPN-based simulation, they are often separate from modern data science ecosystems. Meanwhile, Python has become the de facto language for process mining, machine learning, and data analytics. In this paper, we introduce CPN-Py, a Python library that faithfully preserves the core concepts of Colored Petri Nets -- including color sets, timed tokens, guard logic, and hierarchical structures -- while providing seamless integration with the Python environment. We discuss its design, highlight its synergy with PM4Py (including stochastic replay, process discovery, and decision mining functionalities), and illustrate how the tool supports state space analysis and hierarchical CPNs. We also outline how CPN-Py accommodates large language models, which can generate or refine CPN models through a dedicated JSON-based format.
Abstract: 带数据的有色 Petri 网(CPNs)是一种用于建模携带数据的令牌的过程的成熟形式化方法。尽管像 CPN Tools 和 CPN IDE 这样的工具在基于 CPN 的仿真方面表现出色,但它们通常与现代数据科学生态系统分离。同时,Python 已成为过程挖掘、机器学习和数据分析的事实标准语言。在本文中,我们介绍了 CPN-Py,这是一个忠实保留有色 Petri 网核心概念的 Python 库——包括颜色集、定时令牌、守卫逻辑和分层结构——同时与 Python 环境提供无缝集成。我们讨论了其设计,强调了它与 PM4Py 的协同作用(包括随机重放、过程发现和决策挖掘功能),并展示了该工具如何支持状态空间分析和分层 CPNs。我们还概述了 CPN-Py 如何适应大型语言模型,这些模型可以通过专用的基于 JSON 的格式生成或优化 CPN 模型。
Subjects: Databases (cs.DB)
Cite as: arXiv:2506.12238 [cs.DB]
  (or arXiv:2506.12238v1 [cs.DB] for this version)
  https://doi.org/10.48550/arXiv.2506.12238
arXiv-issued DOI via DataCite

Submission history

From: Alessandro Berti Mr [view email]
[v1] Thu, 27 Mar 2025 12:54:03 UTC (128 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled
  • View Chinese PDF
  • View PDF
  • HTML (experimental)
  • TeX Source
  • Other Formats
view license
Current browse context:
cs.DB
< prev   |   next >
new | recent | 2025-06
Change to browse by:
cs

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack

京ICP备2025123034号