Force-directed算法被广泛应用于描述社交网络等关系型信息图,在D3.js中也有其对应的实现,其原理是使结点在库仑斥力和胡克引力的作用下保持收敛的状态, 原理详细可见https://github.com/LarryLawrence/ForceDirectedLayout ,目前实现了Objective-C 和Swift两种版本,以下是迭代到收敛的效果:
blueeee/BEForceDirected
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Force-Directed iOS上的实现
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published