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.
======
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.
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.1.tar.gz
(121.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
igraph-0.1.1-py2.py3-none-any.whl
(122.6 kB
view details)
File details
Details for the file igraph-0.1.1.tar.gz.
File metadata
- Download URL: igraph-0.1.1.tar.gz
- Upload date:
- Size: 121.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c743b2e54140cb515d034ef654f412a040963037d9b2d0ce8dd56d296dabe45b
|
|
| MD5 |
a63d1169f480267eaf7171225ce996e4
|
|
| BLAKE2b-256 |
d4cb238b11652332f7ba44ae8236d8f39d8b5245ed2bd1de60922b4b33a9105d
|
File details
Details for the file igraph-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: igraph-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 122.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
977ba2a8a6121c51acfdea9a4fecebf387e7bda200fec15efa816f97c7f24fd7
|
|
| MD5 |
49d0576119b5d3bc1580e84933b59809
|
|
| BLAKE2b-256 |
2342e3daef9d7094698e72c6646954be7f776fbd3f1e820d61f7a5bb7523548c
|