{ "info": { "author": "Max Shinn", "author_email": "mws41@cam.ac.uk", "bugtrack_url": null, "classifiers": [], "description": "ForceAtlas2 for Python\n======================\n\nThis is a port of Gephi's ForceAtlas2 layout algorithm to Python 2 and\nPython 3 (with a wrapper for NetworkX).\n\nInstallation\n~~~~~~~~~~~~\n\nThe only strict dependency is Numpy. Cython is highly recommended, as\nit will speed it up by a factor of 10-100, depending on the graph.\nBoth can be installed with:\n\n pip install numpy\n pip install cython\n\nTo use the NetworkX wrapper function, you obviously need NetworkX.\n\nThen to install this package, it is the typical:\n\n python setup.py install\n\n\nExample usage\n~~~~~~~~~~~~~\n\nTwo core functions are defined: \n\n- `forceatlas2.forceatlas2` takes an adjacency matrix and optionally\n initial positions and other optional arguments. It uses this to\n calculate a layout.\n\n- `forceatlas2.forceatlas2_networkx_layout` takes a NetworkX graph and\n returns a NetworkX-compatible layout.\n\nTo use within NetworkX:\n\n import matplotlib.pyplot as plt\n import networkx\n import random\n import forceatlas2\n G = networkx.karate_club_graph()\n pos = { i : (random.random(), random.random()) for i in G.nodes()} # Optionally specify positions as a dictionary\n l = forceatlas2.forceatlas2_networkx_layout(G, pos, niter=1000) # Optionally specify iteration count\n networkx.draw_networkx(G, l)\n plt.show()\n\nNote that my coding style is non-Pythonic, as I don't use function\ndocstrings. You will have to take a look at the function definition\nin `forceatlas2.py` to see a description of all of the potential\narguments.\n\nCopyright\n~~~~~~~~~\n\nThese files are Copyright 2016 Max Shinn and\navailable under the GNU GPLv3. They are heavily based on the java\nfiles included in Gephi, revision git revision 1fba8c1. The (not so\nclear?) copyright information included in the files I this module is\nbased on are:\n\n Copyright 2008-2011 Gephi\n Authors : Mathieu Jacomy \n Website : http://www.gephi.org\n Copyright 2011 Gephi Consortium. All rights reserved.\n Portions Copyrighted 2011 Gephi Consortium.\n\n The contents of this file are subject to the terms of either the\n GNU General Public License Version 3 only (\"GPL\") or the Common\n Development and Distribution License(\"CDDL\") (collectively, the\n \"License\"). You may not use this file except in compliance with\n the License.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://code.launchpad.net/forceatlas2-python", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "ForceAtlas2", "package_url": "https://pypi.org/project/ForceAtlas2/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ForceAtlas2/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://code.launchpad.net/forceatlas2-python" }, "release_url": "https://pypi.org/project/ForceAtlas2/1.0/", "requires_dist": null, "requires_python": null, "summary": "The ForceAtlas2 algorithm for Python (and NetworkX)", "version": "1.0" }, "last_serial": 2132562, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "2155b891eadc6322528e1f6313bd95c9", "sha256": "fdc3d3ea7f85b6535598c30ced3b5ccc7b1ac2e49dc486f4a19c6b9fa998a81d" }, "downloads": -1, "filename": "ForceAtlas2-1.0.tar.gz", "has_sig": false, "md5_digest": "2155b891eadc6322528e1f6313bd95c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6829, "upload_time": "2016-05-25T08:03:00", "url": "https://files.pythonhosted.org/packages/17/40/1966ff5370616809a400085c2e782c0b5f93ed838e437eb2371bc3033414/ForceAtlas2-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2155b891eadc6322528e1f6313bd95c9", "sha256": "fdc3d3ea7f85b6535598c30ced3b5ccc7b1ac2e49dc486f4a19c6b9fa998a81d" }, "downloads": -1, "filename": "ForceAtlas2-1.0.tar.gz", "has_sig": false, "md5_digest": "2155b891eadc6322528e1f6313bd95c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6829, "upload_time": "2016-05-25T08:03:00", "url": "https://files.pythonhosted.org/packages/17/40/1966ff5370616809a400085c2e782c0b5f93ed838e437eb2371bc3033414/ForceAtlas2-1.0.tar.gz" } ] }