Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.0.0 instead.
Reason given by maintainers: python-igraph was renamed to igraph; deleting old packages to avoid confusion

igraph
======

An embeddable webGL graph visualization library.
http://patrickfuller.github.io/igraph/

Examples
========

* [IPython notebook](http://patrickfuller.github.io/igraph/examples/ipython.html)
* [les misérables](http://patrickfuller.github.io/igraph/examples/miserables.html)
* [github connections](http://patrickfuller.github.io/igraph/examples/github.html)

IPython
=======

The IPython notebook is an open-source tool poised to replace MATLAB in many
applications. As a scientist of sorts, I'm all about it. Therefore, I made
handles to use igraph with the notebook. Install through pip:

```
pip install igraph
```

Open a new notebook and test the setup by typing:

```python
import igraph
igraph.draw([(1, 2), (2, 3), (3, 4), (4, 1), (4, 5), (5, 2)])
```

into a notebook cell. You should get a paddlewheel graph as an output. You can
use this in conjunction with other code for educational purposes (try generating
a red-black tree!). There are three commands and some optional parameters to
check out. Read the docstrings and check out the [associated
example](http://patrickfuller.github.io/igraph/examples/ipython.html) for more.

Javascript
==========

Start by downloading the minified javascript file:

```
wget https://raw.githubusercontent.com/patrickfuller/igraph/master/js/build/igraph.min.js
```

Include this file alongside [jQuery](http://jquery.com/) in your project, and then use with:

```javascript
igraph.create('my-selector');
igraph.draw(myGraph);
```

where `'my-selector'` is where you want to place igraph, and `myGraph` is a
plain ol' object. See below for more on the object structure, or just check out
the included example. The `igraph.create()` method takes a few optional
parameters, specifying the sizes and colors of nodes, as well as force-directed
optimization.

```javascript
options = {
directed: true, // Toggles edge arrows
nodeSize: 2.0, // Default node size
edgeSize: 0.25, // Edge connection diameter
arrowSize: 1.0, // If drawn, edge arrow size
defaultNodeColor: 0xaaaaaa, // Color for nodes without a "color" property
defaultEdgeColor: 0x777777, // Color for edges without a "color" property
shader: "toon", // three.js shader to use, can be "toon", "basic", "phong", or "lambert"
runOptimization: true // Runs a force-directed-layout algorithm on the graph
};
```

Graph Data Format
=================

igraph takes input graph data structures as plain objects. Here's the most
boring graph in the world:

```javascript
{
nodes: {
jane: { },
bob: { },
mike: { },
sally: { }
},
edges: [
{ source: "jane", target: "bob" },
{ source: "bob", target: "mike" },
{ source: "mike", target: "sally" }
]
}
```

Nodes require no information outside of their keys. However, there are useful
optional parameters that can be specified.

```javascript
{
color: 0xffffff, // Color for this node
size: 1.0, // Scaling factor for this node's size
location: [0.0, 0.0, 0.0] // Starting location of node. Useful for pre-rendering.
}
```

By default, the algorithm runs a force-directed layout on the graph. When
enabled, the "location" field is optional. However, for larger graphs, you will
want to disable this feature and pre-render the locations. Use the associated
Python library (`igraph.generate`) to do so.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

igraph-0.1.3.tar.gz (121.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

igraph-0.1.3-py2.py3-none-any.whl (122.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file igraph-0.1.3.tar.gz.

File metadata

  • Download URL: igraph-0.1.3.tar.gz
  • Upload date:
  • Size: 121.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for igraph-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a9768a88e5512269cea87a934445a7d7faab81800c81309f0e20b6b20efdcdae
MD5 be167cd35d704df4481b050fbd48d9db
BLAKE2b-256 8a2526ba737773bf3fc08837c7a27985b3c9bd698947ca79116f53456d5d694e

See more details on using hashes here.

File details

Details for the file igraph-0.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for igraph-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 64cc4f36487f9e3930bce3924d2aa288f548139870247cc76946bfc745a559bb
MD5 f2b637fb8187bf7103a912c857d82863
BLAKE2b-256 b1f2bd431ccbc1673d77df4ab6801180c0364d96901b302cfe3d8ea97c0729ec

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.0

15 files

0.11.9

30 files

0.11.8

39 files

0.11.6

39 files

0.11.5

39 files

0.11.4

36 files

0.11.3

36 files

0.11.2

36 files

0.10.8

50 files

0.10.6

50 files

0.10.5

45 files

0.10.4

45 files

0.10.3

45 files

0.10.2

45 files

0.10.1

45 files

0.10.0

45 files

0.9.11

75 files

0.9.10

47 files

0.9.9

39 files

0.9.8

39 files

0.1.14

1 file

0.1.13

1 file

0.1.12

1 file

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page