定制 marcobuschini/mlb-dag-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marcobuschini/mlb-dag-bundle

Composer 安装命令:

composer require marcobuschini/mlb-dag-bundle

包简介

This bundle provides entities, and methods to handle directed acyclic graphs.

README 文档

README

Stories in Ready SensioLabsInsight Build Status Coverage Status codecov

marcobuschini/MLBDagBundle

When managing complex relationship between entities belonging to the real world we often see that they cannot fit simple data models, such as lists, maps, and even trees.

This Symony2 bundle implements a Doctrine data model that allows an application to manage Directed Acyclic Graphs by using both an adjacency list, and a full transitive closure for indirect edges.

A DAG is a set of nodes connected by a set of oriented edges so that no closed loop (cycle) can be created in the data structure. This structure is best handled with an adjacency list, that is a list of edges connecting pairs of nodes (edge E connects node A to node B, but not the opposite). To prevent large amounts of queries to find if node B is reachable from node A a full transitive closure is implemented, that is a list of indirect edges is managed by the bundle. So that if node A connects to node B that connects to node C, an indirect edge from node A to node C is managed by the bundle's logic.

It is important to note that the data structure MUST NOT be modified outside of this bundle as the logic for preventing cycles, and for creating indirect edges IS NOT handled by the database, but by the bundle itself.

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-06