สร้าง business workflow process system ด้วย networkx.org
ในทุกๆ business จะต้องประกอบด้วย workflow ( ขั้นตอนการทำงาน ) มากมาย ในหนึ่ง Workflow จะประกอบด้วย หลายๆ process ยกตัวอย่างเช่น
Workflow สำหรับ การล้างรถ

ประกอบด้วย process ดังต่อไปนี้
- Begin
- Check Car
- Note Conditions
- Inform Car problems to customer
- Put Car in Queue
- Clean the car
- Inform customer
- Get money from customer
- End
Business workflow process system. เป็นระบบที่ใช้ในการสร้างขั้นการทำงาน ( Workflow ) และ Process ที่อยู่ใน worfklow จะต้องเปลี่ยนเป็น function ใน code เช่น

ทำไมถึงใช้ networkx.org ?
NetworkX คือ python package สำหรับสร้าง จัดการ และศึกษาโครงสร้าง , dynamic และการทำงานของ complex network.
ความสามารถของ networkX
- โครงสร้างข้อมูลสำหรับ graph, digraph, และ multigraph
- มี Algorithms มาตรฐานสำหรับ graph
- วัดค่าและวิเคราะห์โครงสร้าง networks
- Generator สำหรับ classic graphics, random graphs, network จำลอง
- Node สามารถเป็นอะไรก็ได้เช่น text, image, XML records
- Edge สามารถเก็บค่าต่างๆได้เช่น weights, time series
- ใช้ภาษา python
ตัวอย่าง code ที่ใช้ networkX
import networkx as nx
G = nx.Graph()
G.add_node(1)
G.add_edge(1, 2)
e = (2, 3)
G.add_edge(*e) # unpack edge tuple*
G.number_of_nodes()
G.number_of_edges()

ศึกษาเพิ่มเติมได้ที่ https://networkx.org/documentation/stable/tutorial.html
feature ที่ผมชอบของ networkX คือสามารถอ่าน dot file ( config file ของ Graphviz https://graphviz.org/ )
ตัวอย่าง code ของ dot language

API. ของ networkX ที่ใช้อ่าน dot file ( https://networkx.org/documentation/stable/reference/generated/networkx.drawing.nx_pydot.read_dot.html )
Related Posts
- Building an OCPP 1.6 Central System with Flask async, WebSockets, and MongoDB
- How AI Supercharges Accounting and Inventory in Odoo (with Dev Insights)
- Building a Fullstack E-commerce System with JavaScript
- Building Agentic AI with Python, Langchain, and Ollama for eCommerce & Factory Automation
- Diagnosing the Root Cause of P0420 with Python, OBD-II, and Live Sensor Data
- How to Apply The Mom Test to Validate Your Startup Idea the Right Way
- When to Choose Rasa vs Langchain for Building Chatbots
- Introducing OCR Document Manager: Extract Text from Documents with Ease
- Testing an AI Tool That Finds Winning Products Before They Trend — Interested?
- Your Website Is Losing Leads After Hours — Here’s the Fix
- How Agentic AI is Revolutionizing Smart Farming — And Why Your Farm Needs It Now
- How to Apply RAG Chatbot with LangChain + Ollama
- Automating EXFO Instruments with SCPI: A Practical Guide
- Design Patterns That Help Tame Legacy Code (With Python Examples)
- How to Safely Add New Features to Legacy Code — A Developer’s Guide
- Modernizing Legacy Software — Without Breaking Everything
- How OpenSearch Works — Architecture, Internals & Real-Time Search Explained
- Choosing the Right Strategy for Basic vs Premium Features in Django
- Transform Your Custom Furniture Business with a Modern eCommerce Platform
- Introducing simpliPOS: The Smart POS Built on ERPNext
Our Products
Related Posts
- Building an OCPP 1.6 Central System with Flask async, WebSockets, and MongoDB
- How AI Supercharges Accounting and Inventory in Odoo (with Dev Insights)
- Building a Fullstack E-commerce System with JavaScript
- Building Agentic AI with Python, Langchain, and Ollama for eCommerce & Factory Automation
- Diagnosing the Root Cause of P0420 with Python, OBD-II, and Live Sensor Data
- How to Apply The Mom Test to Validate Your Startup Idea the Right Way
- When to Choose Rasa vs Langchain for Building Chatbots
- Introducing OCR Document Manager: Extract Text from Documents with Ease
- Testing an AI Tool That Finds Winning Products Before They Trend — Interested?
- Your Website Is Losing Leads After Hours — Here’s the Fix
- How Agentic AI is Revolutionizing Smart Farming — And Why Your Farm Needs It Now
- How to Apply RAG Chatbot with LangChain + Ollama
- Automating EXFO Instruments with SCPI: A Practical Guide
- Design Patterns That Help Tame Legacy Code (With Python Examples)
- How to Safely Add New Features to Legacy Code — A Developer’s Guide
- Modernizing Legacy Software — Without Breaking Everything
- How OpenSearch Works — Architecture, Internals & Real-Time Search Explained
- Choosing the Right Strategy for Basic vs Premium Features in Django
- Transform Your Custom Furniture Business with a Modern eCommerce Platform
- Introducing simpliPOS: The Smart POS Built on ERPNext