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

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

Usage
=====

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

The viewers take input graph data structures as javascript 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.

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 example for more.

Metadata

Release files for igraph 0.1.2

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.2
File Size Uploaded Provenance Actions
igraph-0.1.2.tar.gz 121.6 kB Without provenance Details for igraph-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 244.2 kB

Release files / igraph-0.1.2.tar.gz

Download URL igraph-0.1.2.tar.gz
Size 121.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cba24308b1c6d3228b07a536a477a21817f9f0e02069a0db0ca3987f5233e619
BLAKE2b-256 checksum
How to use checksums
4cca1a0c20b79e04461a7d101a4460e7eeaaac0a9ece43d0d7e26a0c36487257
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL igraph-0.1.2-py2.py3-none-any.whl
Size 122.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1a41e9798a3f8abbeb43c95f21ce40fa6fd0e9bbf6ad9e30e209bbdca497ea7c
BLAKE2b-256 checksum
How to use checksums
72a2ebfd751ac95d108f6d8e4b7c07f2c1bb6358b8ac4955204836d0b84d4ec1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for igraph 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

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