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
==========

You can install through [npm](https://www.npmjs.com/):

```
npm install igraph
```

Once installed, you can use with:

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

where `'my-selector'` is where you want to place igraph, and `myGraph` is a
javascript 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.

Metadata

Release files for igraph 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for igraph 0.1.7
File Size Uploaded
igraph-0.1.7.tar.gz 119.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for igraph 0.1.7
File Interpreter ABI Platform
igraph-0.1.7-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 238.6 kB

Release files / igraph-0.1.7.tar.gz

Download URL igraph-0.1.7.tar.gz
Size 119.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0086d6984247828db4bea1315762942cc2e1df2c5c73ad20dee2f2d544c1e15f
BLAKE2b-256 checksum
How to use checksums
abee572b70803ed76419aed3a4be7a44d6e84d3a0a0f3964fb971f3844d8b93a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / igraph-0.1.7-py2.py3-none-any.whl

Download URL igraph-0.1.7-py2.py3-none-any.whl
Size 119.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b5b16745573a674e616cf3d85d23688c4561956fd45b513c4ea9f3ca22041e11
BLAKE2b-256 checksum
How to use checksums
f1dd2f99904e6409faddcb99d8d83efbb007d8723d73e62d700d11c3501ce8e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.0.0

15 release files

0.9.9

39 release files

0.9.8

39 release files

0.1.14

1 release file

0.1.13

1 release file

0.1.12

1 release file

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release 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