GithubHelp home page GithubHelp logo

yifanhu_python's Introduction

YifanHu_python

(Barnes_Hut算法)Quadtree和YifanHu layout的python实现

Implementation of the YifanHu Layout for representation of huge social network in Python3.5

It is based on the article of Efficient, High-Quality Force-Directed Graph Drawing

The visualization and description are available in this project.You can also take a look at my blog

USAGE

from YifanHu import _layout
lo = _layout.YifanHu(graph=g, pos_array=pos)
while not lo.Converged:
	lo.run_layout()

第一个版本实验:

s1=1, s2=1

  • 运行前随机化坐标
  • 生成布局

s1=10, s2=1

  • 运行前随机化坐标
  • 生成布局

s1=1, s2=10

  • 运行前随机化坐标
  • 生成布局

Barnes-Hut Visualization

  • Insert Nodes

  • Get Mass Centers

Effectiveness of Model

Need to optimize

See in my blog: https://yikunhaocong.com/2018/04/29/barnes-hut/

yifanhu_python's People

Contributors

kali-hac avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.